waiting for configuration verification...... never ends.
-
yjchennagios
- Posts: 19
- Joined: Tue Dec 10, 2013 4:52 pm
waiting for configuration verification...... never ends.
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: waiting for configuration verification...... never ends.
Can you first verify that crond is running
If so, follow the following procedure and post the resulting files
http://support.nagios.com/wiki/index.ph ... n_Problems
Thanks
Code: Select all
service crond statushttp://support.nagios.com/wiki/index.ph ... n_Problems
Thanks
-
yjchennagios
- Posts: 19
- Joined: Tue Dec 10, 2013 4:52 pm
Re: waiting for configuration verification...... never ends.
Hi,
service crond is running.
Here are 2 files attached. Thanks.
Jenny
service crond is running.
Here are 2 files attached. Thanks.
Jenny
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: waiting for configuration verification...... never ends.
Can you show the output of:
Code: Select all
ls -la /usr/local/nagiosxi/var-
yjchennagios
- Posts: 19
- Joined: Tue Dec 10, 2013 4:52 pm
Re: waiting for configuration verification...... never ends.
[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
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.
You are missing a number of logs from the XI crons in this directory. Lets stop cron and try to restart it:
Post the output of all of the commands above.
Code: Select all
service crond stop
ps -aef | grep cron
service cond start
ps -aef | grep cron
cat /etc/cron.d/nagiosxi
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.
-
yjchennagios
- Posts: 19
- Joined: Tue Dec 10, 2013 4:52 pm
Re: waiting for configuration verification...... never ends.
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 ~]#
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.
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/cronFormer 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.
-
yjchennagios
- Posts: 19
- Joined: Tue Dec 10, 2013 4:52 pm
Re: waiting for configuration verification...... never ends.
[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 ~]#
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.
We need to make a home directory:
Check to make sure it is noted in /etc/passwd:
Then test it again:
Code: Select all
mkdir /home/nagios
chown nagios:nagios /home/nagiosCode: Select all
grep nagios /etc/passwdCode: Select all
service crond restart
tail -25 /var/log/cronFormer 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.