Page 1 of 2
Apply configuration doesn't work
Posted: Mon Jul 01, 2013 4:24 am
by Frédéric GRANAT
Hi,
Since a few time, "Apply configuration" doesn't terminate.
Please help me.
Could it be linked with the fact my 50 nodes licence needs to be upgraded (please see the file attached).
I restarted my Nagios server and now I've got : Monitoring engine is not running (No lock file found in /usr/local/nagios/var/nagios.lock )
Frederic
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 9:29 am
by abrist
Unfortunately, there was no file attached. If "apply configuration" just spins (dots forever), you may be hitting a php limit. See the FAQ for possible solutions:
http://support.nagios.com/wiki/index.ph ... _Completes
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 9:40 am
by Frédéric GRANAT
I restarted my Nagios server and now I've got : Monitoring engine is not running (No lock file found in /usr/local/nagios/var/nagios.lock )
What can I do ?
Frederic
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 9:54 am
by abrist
From the CLI:
And lets check the other services:
Code: Select all
service ndo2db status
service mysqld status
service npcd status
service httpd status
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 10:05 am
by Frédéric GRANAT
[root@nagiosxi libexec]# find /usr/local/nagios/libexec -user 500 -exec chown nagios.nagios {} \;
[root@nagiosxi libexec]# service nagios start
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.
[root@nagiosxi libexec]#
[root@nagiosxi libexec]#
[root@nagiosxi libexec]# service ndo2db status
ndo2db (pid 4362) is running...
[root@nagiosxi libexec]# service mysqld status
mysqld (pid 3990) is running...
[root@nagiosxi libexec]# service npcd status
NPCD running (pid 4219).
[root@nagiosxi libexec]# service httpd status
httpd (pid 4143) is running...
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 10:21 am
by abrist
Your config verification is failing, lets find out why:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 10:31 am
by Frédéric GRANAT
Error: Could not find any host matching 'OND_MT_DIGNE.cg.ahp' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 48)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 48)
Error processing object config files!
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 10:37 am
by abrist
Looks like you have the host "OND_MT_DIGNE.cg.ahp" added to a hostgroup somewhere even though the host does not exist. Lets find out which hostgroup:
Code: Select all
grep OND_MT_DIGNE.cg.ahp /usr/local/nagios/etc/hostgroups.cfg -25 | grep "hostgroup_name\|alias\|members"
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 10:42 am
by Frédéric GRANAT
I removed OND_MT_DIGNE from the hostgroups.cfg, and service nagios start doesn' work.
What do I have to do ?
Re: Apply configuration doesn't work
Posted: Mon Jul 01, 2013 10:46 am
by lmiltchev
Do you have more errors? Can you run again the following command and show us the output?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg