Page 1 of 1
Nagios xi installation failing in rhel 8 box
Posted: Mon Jan 18, 2021 11:03 am
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
Re: Nagios xi installation failing in rhel 8 box
Posted: Tue Jan 19, 2021 8:46 am
by deek
Any help here is much appreciated
Re: Nagios xi installation failing in rhel 8 box
Posted: Tue Jan 19, 2021 4:54 pm
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
Re: Nagios xi installation failing in rhel 8 box
Posted: Tue Jan 19, 2021 11:42 pm
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.
Re: Nagios xi installation failing in rhel 8 box
Posted: Wed Jan 20, 2021 1:14 pm
by deek
Let us know if you need other details regading the same.
Re: Nagios xi installation failing in rhel 8 box
Posted: Wed Jan 20, 2021 4:05 pm
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:
Now, please try to install "graphviz-gd" manually:
Code: Select all
# dnf install graphviz-gd
or
# yum install graphviz-gd
Regards,
Vinh
Re: Nagios xi installation failing in rhel 8 box
Posted: Thu Jan 21, 2021 8:04 am
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
Re: Nagios xi installation failing in rhel 8 box
Posted: Thu Jan 21, 2021 7:23 pm
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!
Re: Nagios xi installation failing in rhel 8 box
Posted: Fri Jan 22, 2021 10:38 am
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.
Re: Nagios xi installation failing in rhel 8 box
Posted: Fri Jan 22, 2021 7:35 pm
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
Then run this command to start it up.:
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:
If you need to revert back to NDO3 for some reason you can just reverse the nagios.cfg change and restart the nagios service.