Page 1 of 1
Performance Graph broken
Posted: Thu Nov 07, 2013 2:32 pm
by vmesquita
Performance Graph is Nagios became broken. All graphs look like attached image. I have tried the procedures described on the wiki, and also cleaned /usr/local/nagios/var/spool. Any idea on how I could fix this?
Re: Performance Graph broken
Posted: Thu Nov 07, 2013 2:35 pm
by slansing
What is the output of the following:
Code: Select all
service npcd status
ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
ls /usr/local/nagios/var/spool/checkresults | wc -l
Re: Performance Graph broken
Posted: Thu Nov 07, 2013 2:42 pm
by vmesquita
Code: Select all
[root@nagios ~]# service npcd status
NPCD running (pid 3250).
[root@nagios ~]#
[root@nagios ~]# ls /usr/local/nagios/var/spool/xidpe | wc -l
0
[root@nagios ~]#
[root@nagios ~]# ls /usr/local/nagios/var/spool/perfdata | wc -l
2
[root@nagios ~]#
[root@nagios ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
60
Re: Performance Graph broken
Posted: Thu Nov 07, 2013 3:18 pm
by abrist
Run the following command again:
Code: Select all
ls /usr/local/nagios/var/spool/checkresults | wc -l
Also, lets check the perfdata/npcd logs:
Code: Select all
tail -25 /usr/local/nagios/var/perfdata.log
tail -25 /usr/local/nagios/var/npcd.log
Re: Performance Graph broken
Posted: Thu Nov 07, 2013 3:25 pm
by vmesquita
Code: Select all
[root@nagios ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
52
Code: Select all
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ############ / __Disk_Usage (/=17024MB;101453;114135;0;126817)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ##### / bond2.2162_Bandwidth (in=.000009Mb/s;200;500 out=.000005Mb/s;200;500)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ####### / bond1_Bandwidth (in=2.798394Mb/s;200;500 out=.839381Mb/s;200;500)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ######### / Ping (rta=0.847ms;3000.000;5000.000;0; pl=0%;80;100;;)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ######## / Ping (rta=0.759ms;3000.000;5000.000;0; pl=0%;80;100;;)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ######### / Load (load1=0.020;15.000;30.000;0; load5=0.020;10.000;20.000;0; load15=0.000;5.000;10.000;0;)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ######## / Load (load1=0.000;15.000;30.000;0; load5=0.000;10.000;20.000;0; load15=0.000;5.000;10.000;0;)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ########### / Ping (rta=36.121ms;3000.000;5000.000;0; pl=0%;80;100;;)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ############ / Ping (rta=36.729ms;3000.000;5000.000;0; pl=0%;80;100;;)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ########## / Swap_Usage (swap=1018MB;0;0;0;1023)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] Found Performance Data for ########## / Swap_Usage (swap=1012MB;0;0;0;1023)
2013-11-07 18:22:04 [23748] [1] rrdtool update returns 0
2013-11-07 18:22:04 [23748] [1] 110 lines processed
2013-11-07 18:22:04 [23748] [1] /usr/local/nagios/var/spool/perfdata//1383855704.perfdata.service-PID-23748 deleted
2013-11-07 18:22:04 [23748] [1] PNP exiting (runtime 0.568008s) ...
(hostnames have been replaced with ##########)
Code: Select all
[11-07-2013 18:22:03] NPCD: Processing file '1383855704.perfdata.service'
[11-07-2013 18:22:03] NPCD: Processing file '1383855719.perfdata.host'
[11-07-2013 18:22:03] NPCD: Processing file '1383855719.perfdata.service'
[11-07-2013 18:22:04] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:22:19] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:22:34] NPCD: Processing file '1383855734.perfdata.host'
[11-07-2013 18:22:34] NPCD: Processing file '1383855734.perfdata.service'
[11-07-2013 18:22:34] NPCD: Processing file '1383855749.perfdata.host'
[11-07-2013 18:22:34] NPCD: Processing file '1383855749.perfdata.service'
[11-07-2013 18:22:34] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:22:49] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:23:04] NPCD: Processing file '1383855764.perfdata.host'
[11-07-2013 18:23:04] NPCD: Processing file '1383855764.perfdata.service'
[11-07-2013 18:23:04] NPCD: Processing file '1383855779.perfdata.host'
[11-07-2013 18:23:04] NPCD: Processing file '1383855779.perfdata.service'
[11-07-2013 18:23:05] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:23:20] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:23:35] NPCD: Processing file '1383855794.perfdata.host'
[11-07-2013 18:23:35] NPCD: Processing file '1383855794.perfdata.service'
[11-07-2013 18:23:35] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:23:50] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:24:05] NPCD: Processing file '1383855831.perfdata.host'
[11-07-2013 18:24:05] NPCD: Processing file '1383855831.perfdata.service'
[11-07-2013 18:24:05] NPCD: No more files to process... waiting for 15 seconds
[11-07-2013 18:24:20] NPCD: No more files to process... waiting for 15 seconds
Re: Performance Graph broken
Posted: Thu Nov 07, 2013 3:32 pm
by vmesquita
It seems to be working again, there's a gap in the graphics but it should be related to the files in /spool that I deleted. Thanks!