Page 1 of 1

Disk Latency PerfMon Query

Posted: Wed Dec 13, 2017 11:44 am
by neworderfac33
Good afternoon,
I'm using variations on the following to report disk drive latency via PerfMon

Code: Select all

define service{
        use                     generic-service
        host_name               
        hostgroup_name          
         service_description     C_Disk_Write_Latency
        check_command           check_nrpe!checkcounter! -a 'Counter:C: Avg. Disk sec/Write=\LogicalDisk(C:)\Avg. Disk sec/Write' ShowAll MaxWarn=10 MaxCrit=20
}

Code: Select all

./check_nrpe -H mn2svwatp001sd0 -a "Counter (C:)\Avg. Disk sec/Write","C: Drive Latency" -w 10 -c 20
but no warnings or errors are being generated, either by the service definition or the manual command.
For one host, I might be prepared to believe this, but not for ten. Can anyone out there see anything obviously wrong with my syntax?
Thanks in advance
Pete

Re: Disk Latency PerfMon Query

Posted: Thu Dec 14, 2017 4:13 pm
by kyang
What is the output of that command?

I get something like this when I run it through the terminal.

Code: Select all

./check_nrpe -H 192.168.3.46 -a "Counter (C:)\Avg. Disk sec/Write","C: Drive Latency" -w 10 -c 20

I (0.5.0.62 2016-09-14) seem to be doing fine...