Nagios xi installation failing in rhel 8 box

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Nagios xi installation failing in rhel 8 box

Post by deek »

Hi

We are not able to install nagios in rhel 8 box.

Error:
Problem: conflicting requests
- nothing provides graphviz-gd needed by nagiosxi-deps-el8-5.7.2-1.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).


If you require assistance in resolving the issue, please include install.log
in your communications with Nagios xi technical support.


The script that failed was: './1-prereqs'

Thanks
DK
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Nagios xi installation failing in rhel 8 box

Post by deek »

Any help here is much appreciated
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Nagios xi installation failing in rhel 8 box

Post by vtrac »

Hi deek,
Please try doing this first:

Code: Select all

yum install https://repo.nagios.com/nagios/8/nagios-repo-8-1.el8.noarch.rpm
That will include the nagios repo and the nagiosxi-deps repo.

Which points to here:
https://repo.nagios.com/nagios/8/
https://repo.nagios.com/nagiosxi-deps/8/

Regards,
Vinh
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Nagios xi installation failing in rhel 8 box

Post by deek »

Thanks Vinh.
We tried installing this and we checked if it is pointing correctly and it is. But still we face the same issue.
What logs would you like to see to find any errors which i can upload here.
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Nagios xi installation failing in rhel 8 box

Post by deek »

Let us know if you need other details regading the same.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Nagios xi installation failing in rhel 8 box

Post by vtrac »

Hi deek,
Looks like it can not find "graphviz-gd" package.

Can you please try:

Code: Select all

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

(CentOS 8.x)
# dnf config-manager --set-enabled PowerTools

(redhat 8.x)
# subscription-manager repos --enable "codeready-builder-for-rhel-8-x86_64-rpms"
Also, could you please do and update results to this post/ticket:

Code: Select all

# ls -l /etc/yum.repos.d/
Now, please try to install "graphviz-gd" manually:

Code: Select all

# dnf install graphviz-gd
or
# yum install graphviz-gd
Regards,
Vinh
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Nagios xi installation failing in rhel 8 box

Post by deek »

Thanks Vinh. After successful installation we see this db issue.
nagios_db.JPG
we were using 5.6.X version where ndo2db is part of it .
In this newer version, we see nd03 and we are not sure what needs to done here.

BAsed on below article, made some changes
https://support.nagios.com/kb/article/u ... i-885.html

>stopped nagios service
>Make sure this line is uncommented:
broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
>started nagio service.


But Still we are seeing DB is not up.

Thanks
DK
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi installation failing in rhel 8 box

Post by ssax »

We'll need to take a look at your setup.

Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

PM your /usr/local/nagios/var/nagios.log file as well.

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*​​
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip​ file.​

If the profile script fails, please include the ENTIRE output.

Thank you!
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Nagios xi installation failing in rhel 8 box

Post by deek »

Hi ssax

Attached the profile and nagios.log

Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.

Thanks
Deepan.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi installation failing in rhel 8 box

Post by ssax »

Try repairing your databases and see if that helps:

https://assets.nagios.com/downloads/nag ... tabase.pdf

I think there may still be some bugs in the new NDO3, I would do this and see if it resolves your issue if the DB repair doesn't resolve it:
- Take a VM snapshot first just in case you need to revert

Run these commands as root:

Code: Select all

systemctl stop nagios
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.14.tar.gz
tar zxf xi-5.6.14.tar.gz
cd /tmp/nagiosxi
./init.sh
cd /tmp/nagiosxi/subcomponents/ndoutils
./install
systemctl enable ndo2db
If you have an offloaded database you will need to edit your /usr/local/nagios/etc/ndo2db.cfg file and update these before running the next command to start it up:
- You can get the info from your /usr/local/nagios/etc/ndo.cfg or from /usr/local/nagiosxi/html/config.inc.php

Code: Select all

db_host
db_port
db_user
db_pass
Then run this command to start it up.:

Code: Select all

systemctl start ndo2db
Then edit your /usr/local/nagios/etc/nagios.cfg and make sure this line is uncommented:

Code: Select all

broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
Make sure all occurrences of this line are commented:

Code: Select all

#broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
Then start the nagios service:

Code: Select all

systemctl start nagios
If you need to revert back to NDO3 for some reason you can just reverse the nagios.cfg change and restart the nagios service.