Re: Nagios Output Not Graphing
Posted: Wed Dec 02, 2015 11:40 pm
Hi rkennedy,
All host in my nagios are not graphing
All host in my nagios are not graphing
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
ls -l /usr/local/nagios/var
ls -l /usr/local/nagios/var/spool
ls -l /usr/local/nagios/var/spool/xidpe
ls -l /usr/local/nagios/var/spool/perfdata
# ls -l /usr/local/nagios/var
total 3096
drwxrwxr-x 2 nagios nagios 155648 Dec 4 00:00 archives
-rw-r--r-- 1 nagios nagios 160730 Nov 23 13:19 livestatus.log
-rwxr-xr-x 1 root root 262 Jun 24 12:09 mail.sh
-rw-r--r-- 1 root root 518738 Mar 10 2015 nagios.debug
-rw-r--r-- 1 nagios nagios 6 Nov 23 13:19 nagios.lock
-rw-r--r-- 1 nagios nagios 400799 Dec 4 20:42 nagios.log
-rw-r--r-- 1 nagios nagios 499525 Nov 23 13:19 objects.cache
-rw------- 1 nagios nagios 684413 Dec 4 20:19 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Nov 23 13:19 rw
-rw-r--r-- 1 root root 4013 Jun 24 12:09 samplelogs2.txt
-rw-r--r-- 1 root root 5229 Jun 24 12:09 samplelogs.txt
drwxrwxr-x 3 nagios nagios 4096 Oct 24 2012 spool
-rw-rw-r-- 1 nagios nagios 683717 Dec 4 20:43 status.dat
# ls -l /usr/local/nagios/var/spool
total 16
drwxrwxr-x 2 nagios nagios 16384 Dec 4 20:44 checkresults
# ls -l /usr/local/nagios/var/spool/xidpe
ls: /usr/local/nagios/var/spool/xidpe: No such file or directory
# ls -l /usr/local/nagios/var/spool/perfdata
ls: /usr/local/nagios/var/spool/perfdata: No such file or directory
Code: Select all
command_name process-service-perfdataCode: Select all
command_name process-service-perfdata-fileCode: Select all
command_name process-host-perfdataCode: Select all
command_name process-host-perfdata-fileCode: Select all
service nagios restartCode: Select all
tail -200 /usr/local/pnp4nagios/var/perfdata.log2015-12-10 10:01:37 [26778] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:01:37 [26778] [1] Cant find Nagios Environment. Exiting ....
2015-12-10 10:01:37 [26780] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:01:37 [26780] [1] Cant find Nagios Environment. Exiting ....
2015-12-10 10:02:07 [26890] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:02:07 [26890] [1] Cant find Nagios Environment. Exiting ....
2015-12-10 10:02:07 [26892] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:02:07 [26892] [1] Cant find Nagios Environment. Exiting ....
2015-12-10 10:02:37 [27269] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:02:37 [27269] [1] Cant find Nagios Environment. Exiting ....
2015-12-10 10:02:37 [27271] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:02:37 [27271] [1] Cant find Nagios Environment. Exiting ....
2015-12-10 10:03:07 [27447] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:03:07 [27447] [1] Cant find Nagios Environment. Exiting ....
2015-12-10 10:03:07 [27449] [1] process_perfdata.pl-0.6.22 starting in SYNC Mode
2015-12-10 10:03:07 [27449] [1] Cant find Nagios Environment. Exiting ....
Apparently it's a Nagios 4 bug, where environment data used by pnp4nagios is not provided in sync mode.
Switching to bulk+npcd mode, solved the problem.