Page 1 of 4

waiting for configuration verification...... never ends.

Posted: Wed Dec 11, 2013 6:33 pm
by yjchennagios
When I tried to add the host from monitor wizard, after submitting "apply configuration", the process of "waiting for configuration verification......" never ends.
I've installed all required packages on the remote linux systems, for both snmp and nrpd, checked iptables ok, checked configuration file ok, but still cannot add any host into Nagios server console.

Also increased the max_memroy limit size by following the instruction.
http://support.nagios.com/wiki/index.ph ... leshooting

No luck yet.

Please help. Thank you.

Jenny

Re: waiting for configuration verification...... never ends.

Posted: Wed Dec 11, 2013 11:08 pm
by scottwilkerson
Can you first verify that crond is running

Code: Select all

service crond status
If so, follow the following procedure and post the resulting files

http://support.nagios.com/wiki/index.ph ... n_Problems

Thanks

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 2:01 am
by yjchennagios
Hi,

service crond is running.

Here are 2 files attached. Thanks.

Jenny

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 11:11 am
by slansing
Can you show the output of:

Code: Select all

ls -la /usr/local/nagiosxi/var

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 11:35 am
by yjchennagios
[root@itmon ~]# ls -la /usr/local/nagiosxi/var
total 24
drwxr-xr-x. 4 nagios nagios 4096 Dec 5 11:57 .
drwxr-xr-x. 10 nagios nagios 4096 Dec 5 11:57 ..
drwsrwsr-x. 2 apache nagios 4096 Dec 5 11:57 components
drwxr-xr-x. 2 nagios nagios 4096 Dec 11 22:52 subsys
-rw-r--r--. 1 nagios nagios 774 Dec 5 11:57 xi-sys.cfg
-rw-r--r--. 1 nagios nagios 202 Dec 10 14:25 xiversion

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 12:36 pm
by abrist
You are missing a number of logs from the XI crons in this directory. Lets stop cron and try to restart it:

Code: Select all

service crond stop
ps -aef | grep cron
service cond start
ps -aef | grep cron
cat /etc/cron.d/nagiosxi
Post the output of all of the commands above.

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 1:03 pm
by yjchennagios
Hi,

Here it is.
********************************************************************************************************
[root@itmon ~]# service crond stop
Stopping crond: [ OK ]
[root@itmon ~]# ps -aef | grep cron
root 2864 2779 0 10:01 pts/2 00:00:00 grep cron
[root@itmon ~]# service crond start
Starting crond: [ OK ]
[root@itmon ~]# ps -aef | grep cron
root 2880 1 0 10:01 ? 00:00:00 crond
root 2892 2779 0 10:01 pts/2 00:00:00 grep cron
[root@itmon ~]# cat /etc/cron.d/nagiosxi
# /etc/cron.d/nagiosxi: crontab fragment for nagiosxi

# Backup MySQL & PostgreSQL Databases
0 7 * * * root /root/scripts/automysqlbackup
0 8 * * * root /root/scripts/autopostgresqlbackup

* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
01 * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl > /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php > /usr/local/nagiosxi/var/deadpool.log 2>&1

[root@itmon ~]#

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 2:50 pm
by abrist
It looks like the cron jobs are not getting run. Lets check teh crond log:

Code: Select all

service crond restart
tail -25 /var/log/cron

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 2:55 pm
by yjchennagios
[root@itmon ~]# service crond restart
Stopping crond: [ OK ]
Starting crond: [ OK ]
[root@itmon ~]# tail -25 /var/log/cron
Dec 12 11:53:01 itmon CROND[8899]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:53:01 itmon CROND[8901]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:53:01 itmon CROND[8900]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8943]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8944]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8946]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8948]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8945]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8947]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8950]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:01 itmon CROND[8949]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:54:56 itmon crond[8996]: (CRON) STARTUP (1.4.4)
Dec 12 11:54:56 itmon crond[8996]: (CRON) INFO (running with inotify support)
Dec 12 11:54:56 itmon crond[8996]: (CRON) INFO (@reboot jobs will be run at computer's startup.)
Dec 12 11:55:01 itmon CROND[9019]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9020]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9023]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9024]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9025]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9021]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9022]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9026]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9027]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9028]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
Dec 12 11:55:01 itmon CROND[9029]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok)
[root@itmon ~]#

Re: waiting for configuration verification...... never ends.

Posted: Thu Dec 12, 2013 3:01 pm
by abrist
We need to make a home directory:

Code: Select all

mkdir /home/nagios
chown nagios:nagios /home/nagios
Check to make sure it is noted in /etc/passwd:

Code: Select all

grep nagios /etc/passwd
Then test it again:

Code: Select all

service crond restart
tail -25 /var/log/cron