Apply configuration doesn't work
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Apply configuration doesn't work
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
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
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
http://support.nagios.com/wiki/index.ph ... _Completes
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't work
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
What can I do ?
Frederic
Re: Apply configuration doesn't work
From the CLI:
And lets check the other services:
Code: Select all
service nagios startCode: Select all
service ndo2db status
service mysqld status
service npcd status
service httpd statusFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't work
[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...
[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
Your config verification is failing, lets find out why:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't work
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!
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
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"Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: Apply configuration doesn't work
I removed OND_MT_DIGNE from the hostgroups.cfg, and service nagios start doesn' work.
What do I have to do ?
What do I have to do ?
Re: Apply configuration doesn't work
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.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!