Disk Latency PerfMon Query

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Disk Latency PerfMon Query

Post 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
kyang

Re: Disk Latency PerfMon Query

Post 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...
Locked