Page 1 of 1

Performance Graphs aren't created for windows perf counters

Posted: Wed May 29, 2013 12:59 pm
by uidaho
I have created several services that use check_nrpe with the CheckCounter command against nsclient++. The services all work as expected for status ("OK all counters within bounds."). However, on any service that checks more than a single performance counter, the Performance Graphs are not being generated.

Here is an argument of a service that successfully generates the Performance Graphs:

Code: Select all

CheckCounter -a '\\Processor(_Total)\\% Processor Time'
And here is one that returns data (as checked using check_nrpe form the shell), but does not generate performance graphs:

Code: Select all

'\\LogicalDisk(D:)\\Avg. Disk Write Queue Length' '\\LogicalDisk(D:)\\Avg. Disk sec/Read' '\\LogicalDisk(D:)\\Avg. Disk sec/Write' '\\LogicalDisk(D:)\\% Disk Read Time' '\\LogicalDisk(D:)\\% Disk Write Time' '\\LogicalDisk(D:)\\Avg. Disk Bytes/Read' '\\LogicalDisk(D:)\\Avg. Disk Bytes/Write' '\\LogicalDisk(D:)\\Split IO/Sec'
I have tried various combinations of single quotes, double quotes, escaped and not escaped slashes.

Here is a sample of what check_nrpe returns when run from the shell:

Code: Select all

./check_nrpe -H ####.### -c CheckCounter -a '\LogicalDisk(D:)\Avg. Disk Read Queue Length' '\LogicalDisk(D:)\Avg. Disk Write Queue Length' '\LogicalDisk(D:)\Avg. Disk sec/Read' '\LogicalDisk(D:)\Avg. Disk sec/Write' '\LogicalDisk(D:)\% Disk Read Time' '\LogicalDisk(D:)\% Disk Write Time' '\LogicalDisk(D:)\Avg. Disk Bytes/Read' '\LogicalDisk(D:)\Avg. Disk Bytes/Write' '\LogicalDisk(D:)\Split IO/Sec'

OK all counters within bounds.|'\LogicalDisk(D:)\Avg. Disk Read Queue Length'=0 '\LogicalDisk(D:)\Avg. Disk Write Queue Length'=0 '\LogicalDisk(D:)\Avg. Disk sec/Read'=0 '\LogicalDisk(D:)\Avg. Disk sec/Write'=0 '\LogicalDisk(D:)\% Disk Read Time'=0 '\LogicalDisk(D:)\% Disk Write Time'=0 '\LogicalDisk(D:)\Avg. Disk Bytes/Read'=0 '\LogicalDisk(D:)\Avg. Disk Bytes/Write'=4096 '\LogicalDisk(D:)\Split IO/Sec'=0
I also tried deleting the xml and rrd files for the service and allowing Nagios to regenerate them; this did not help.

I read through this:
http://support.nagios.com/wiki/index.ph ... h_Problems
but since only some of my graphs are affected, it did not seem to apply.

Thank you in advance for your advice!

--EDIT--

I wanted to note that only the graphs under the "Performance Graphs" tab aren't working. The graphs that pop up when you click on the little graph icon near the service name under Service Status successfully show data.



David Summers
University of Idaho ITS

Re: Performance Graphs aren't created for windows perf count

Posted: Wed May 29, 2013 3:26 pm
by lmiltchev
You've opened a new support ticket in our ticketing system, so I am locking this post. We will be communicating via email.