Problem with Monitoring Engine

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sonnienguyen
Posts: 11
Joined: Tue Sep 27, 2016 7:57 pm

Problem with Monitoring Engine

Post by sonnienguyen »

I've successfully installed Nagios XI, but now having issue starting the Monitoring Engine.
The system indicate a problem with 'File Permission', but these files doesn't seems to be there...

Code: Select all

The following configuration files have incorrect permissions:
/usr/local/nagios/etc/commands.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/contactgroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/contacts.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/contacttemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostdependencies.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostescalations.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostextinfo.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hostgroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/hosttemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/servicedependencies.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/serviceescalations.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/serviceextinfo.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/servicegroups.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/servicetemplates.cfg (OWNER=root, GROUP=root, PERMS=u---------)
/usr/local/nagios/etc/timeperiods.cfg (OWNER=root, GROUP=root, PERMS=u---------)
Ran reset_config_perms.sh script and got the error below. Still the Monitoring Engine cannot start.

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms.sh
RESETTING PERMS
/bin/chown: cannot access ‘/usr/local/nagiosxi/nom/checkpoints/nagiosxi’: No such file or directory
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Problem with Monitoring Engine

Post by dwhitfield »

Please comment out /bin/chown $nagiosuser:$nagiosgroup /usr/local/nagiosxi/nom/checkpoints/nagiosxi
in /usr/local/nagiosxi/scripts/reset_config_perms.sh.

The line will now look like #/bin/chown $nagiosuser:$nagiosgroup /usr/local/nagiosxi/nom/checkpoints/nagiosxi.

After you comment out that line, please rerun the script

Code: Select all

cd /usr/local/nagiosxi/scripts/
./reset_config_perms.sh
If you are still having issues, please post your /tmp/nagiosxi/install.log?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem with Monitoring Engine

Post by lmiltchev »

In addition to what dwhitfield said, can you also run the following commands, and show the output?

Code: Select all

uname -a
cat /etc/*release
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked