Page 1 of 1

Data not graphing

Posted: Mon Dec 07, 2015 5:04 pm
by CFT6Server
I notice that a device doing CPUload check was not graphing the 5m and 15m load data. But the results does include the 5m and 15m perf data.

Using check_linux_cpuload.pl:
Result in Advanced under XI confirming data: Performance Data: Load1m=0.64 Load5m=0.68 Load15m=0.70

Using Box293 Performance Tool to confirm that only 1m is graphing
cpuload.png
running the command:

Code: Select all

 ./check_linux_cpuload.pl -H server-C public-s 2 -w 80 -c 90
CPU Load OK - No Problems found (Average Load 0.79)|Load1m=0.81 Load5m=0.80 Load15m=0.77
Not sure why this is happening. Anyway to savage this without removing and readding the service check?

Re: Data not graphing

Posted: Mon Dec 07, 2015 5:32 pm
by rkennedy
Where did you get the script from, check_linux_cpuload.pl? Can you post it here for us to take a look at?

Re: Data not graphing

Posted: Mon Dec 07, 2015 7:38 pm
by Box293
Also, can you go to the Advanced tab of that service and show us a screenshot please.

Re: Data not graphing

Posted: Tue Dec 08, 2015 3:43 pm
by CFT6Server
This was modified by us to provide CPU load. I have it running for few hundred devices but I only found this particular one to be an issue.
Attached are the screenshots.

Here's a sample of a good one
good.png

Re: Data not graphing

Posted: Tue Dec 08, 2015 3:48 pm
by CFT6Server
Here's the check linux cpuload file.

Re: Data not graphing

Posted: Tue Dec 08, 2015 5:19 pm
by Box293
The performance data the script is outputting looks formatted correctly.

Lets increase the logging verbosity and then take a deeper look into the logs. Follow the FAQ entry below to increase the log level of process_perfdata and npcd:

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

Wait 15 - 20 minutes and then get a tail of the logs:

Code: Select all

tail -250 /usr/local/nagios/var/perfdata.log > /tmp/perfdata.txt
tail -250 /usr/local/nagios/var/npcd.log > /tmp/npcd.txt
Send us a copy of /tmp/perfdata.txt and /tmp/npcd.txt

Don't forget to turn down the log level as per the FAQ when you are done!

I'm positive there will be errors about more data sources than what exists in the RRD file, these steps will fix it:

ICMP and Ping Checks Stopped Graphing After XI 2014 Upgrade
http://support.nagios.com/wiki/index.ph ... 14_Upgrade