Nagios XI fails to install autodiscovery properly in CentOS7
Posted: Mon May 04, 2015 5:00 pm
Nagios XI Version: 2014r2.7 [demo]
Host: CentOS Linux release 7.1.1503
Host architecture: 64bit
Install: manual
Problem Description
When trying to run the auto-discovery wizard, I get the following error:
Under CentOS7/RHEL7 the init.d directory is gone. The proper way to do this, which will work under CentOS/RHEL 5 - 7, is:
The service command is redirected to systemctl under CentOS7.
Alternatively, check which service management tool is available and invoke service or systemctl as appropriate:
Chris
Host: CentOS Linux release 7.1.1503
Host architecture: 64bit
Install: manual
Problem Description
When trying to run the auto-discovery wizard, I get the following error:
Looking at /usr/local/nagiosxi/html/includes/components/autodiscovery/setup.sh, I seeAn installation errror was detected. The following steps must be completed before using this component:
Run the setup script. To do this, login to the Nagios XI server as the root user and issue the following commands:
chmod +x /usr/local/nagiosxi/html/includes/components/autodiscovery/setup.sh
/usr/local/nagiosxi/html/includes/components/autodiscovery/setup.sh
Code: Select all
/etc/init.d/httpd reloadCode: Select all
service httpd reloadAlternatively, check which service management tool is available and invoke service or systemctl as appropriate:
Code: Select all
if [ -e /usr/bin/systemctl ]; then
/usr/bin/systemctl restart httpd.service
else
/usr/sbin/service httpd restart
fi