Performance data - Counter value not an integer
Posted: Thu Oct 04, 2012 6:26 am
Hallo Nagios people,
I've seen similar questions to this but haven't been able to find the answer I'm looking for....
I am monitoring several Windows servers, mainly Exchange and I'm looking to monitor a Performance Counter for Disk Read speeds.
e.g. command and result
/usr/local/nagios/libexec/check_nt -H exchangexx -p 1248 -v COUNTER -l "\\PhysicalDisk(2 S:)\Avg. Disk sec/Read","S: Drive Latency %.2f" -w 0.02 -c 0.04
S: Drive Latency 0.01 | 'S: Drive Latency %.2f'=0.008815%;0.000000;0.000000;
Which is fine other, than the Warning and Critical values don't trigger. I suspect that this is because they are supposed to specified as Integer values.
Is it possible to either multiply the results i.e. 0.008815 becomes 88.15 so I can use integer W and C values, or, is there some way to use float values for W and C
Thanks for any advice, Uncle_Lumpy.
I've seen similar questions to this but haven't been able to find the answer I'm looking for....
I am monitoring several Windows servers, mainly Exchange and I'm looking to monitor a Performance Counter for Disk Read speeds.
e.g. command and result
/usr/local/nagios/libexec/check_nt -H exchangexx -p 1248 -v COUNTER -l "\\PhysicalDisk(2 S:)\Avg. Disk sec/Read","S: Drive Latency %.2f" -w 0.02 -c 0.04
S: Drive Latency 0.01 | 'S: Drive Latency %.2f'=0.008815%;0.000000;0.000000;
Which is fine other, than the Warning and Critical values don't trigger. I suspect that this is because they are supposed to specified as Integer values.
Is it possible to either multiply the results i.e. 0.008815 becomes 88.15 so I can use integer W and C values, or, is there some way to use float values for W and C
Thanks for any advice, Uncle_Lumpy.