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
Nagios xi installation failing in rhel 8 box
-
- Posts: 194
- Joined: Fri Apr 26, 2019 2:01 am
Re: Nagios xi installation failing in rhel 8 box
Any help here is much appreciated
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Nagios xi installation failing in rhel 8 box
Hi deek,
Please try doing this first:
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
Please try doing this first:
Code: Select all
yum install https://repo.nagios.com/nagios/8/nagios-repo-8-1.el8.noarch.rpm
Which points to here:
https://repo.nagios.com/nagios/8/
https://repo.nagios.com/nagiosxi-deps/8/
Regards,
Vinh
-
- Posts: 194
- Joined: Fri Apr 26, 2019 2:01 am
Re: Nagios xi installation failing in rhel 8 box
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.
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.
-
- Posts: 194
- Joined: Fri Apr 26, 2019 2:01 am
Re: Nagios xi installation failing in rhel 8 box
Let us know if you need other details regading the same.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Nagios xi installation failing in rhel 8 box
Hi deek,
Looks like it can not find "graphviz-gd" package.
Can you please try:
Also, could you please do and update results to this post/ticket:
Now, please try to install "graphviz-gd" manually:
Regards,
Vinh
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"
Code: Select all
# ls -l /etc/yum.repos.d/
Code: Select all
# dnf install graphviz-gd
or
# yum install graphviz-gd
Vinh
-
- Posts: 194
- Joined: Fri Apr 26, 2019 2:01 am
Re: Nagios xi installation failing in rhel 8 box
Thanks Vinh. After successful installation we see this db issue.
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
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.
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: Nagios xi installation failing in rhel 8 box
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:
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!
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
If the profile script fails, please include the ENTIRE output.
Thank you!
-
- Posts: 194
- Joined: Fri Apr 26, 2019 2:01 am
Re: Nagios xi installation failing in rhel 8 box
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.
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.
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: Nagios xi installation failing in rhel 8 box
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:
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:
Make sure all occurrences of this line are commented:
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.
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
- 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
Code: Select all
systemctl start ndo2db
Code: Select all
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
Code: Select all
#broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
Code: Select all
systemctl start nagios