Page 1 of 1
Perf results in seconds instead of percentage
Posted: Fri Aug 01, 2014 8:39 am
by pfsweb
I need to get the below performance results in a flat number instead of a percentage. I have tried playing withe %.f to not get a percentage but it just will not work for me.
i am using Check_nt with a NSClient++
-l "\\LogicalDisk(_Total)\\Avg. Disk Sec/Read","Average Read Time per Second is %.f " -w 100 -c 200
Please assist.
Re: Perf results in seconds instead of percentage
Posted: Fri Aug 01, 2014 12:24 pm
by sreinhardt
Can you post the output of running your check manually once? I agree this should not be a percentage at all, but a simple counter.
Re: Perf results in seconds instead of percentage
Posted: Mon Aug 04, 2014 2:11 pm
by pfsweb
The output is correct but the Performance graph is where the percentage shows up.
Re: Perf results in seconds instead of percentage
Posted: Mon Aug 04, 2014 4:19 pm
by lmiltchev
Can you show us the output?
Re: Perf results in seconds instead of percentage
Posted: Mon Aug 04, 2014 8:23 pm
by Box293
I suggest you change to check_nrpe.
Code: Select all
./check_nrpe -H 192.168.1.100 -c CheckCounter -a "Counter=\\LogicalDisk(_Total)\\Avg. Disk Sec/Read" ShowAll MaxWarn=100 MaxCrit=200
Which gives you:
Code: Select all
OK: \LogicalDisk(_Total)\Avg. Disk Sec/Read: 0|'\LogicalDisk(_Total)\Avg. Disk Sec/Read'=0;100;200;
Note: If you use the same service name you should delete the existing .rrd and .xml files just so the performance data is correct.