Perf results in seconds instead of percentage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pfsweb
Posts: 47
Joined: Fri Jun 27, 2014 9:01 am

Perf results in seconds instead of percentage

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Perf results in seconds instead of percentage

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
pfsweb
Posts: 47
Joined: Fri Jun 27, 2014 9:01 am

Re: Perf results in seconds instead of percentage

Post by pfsweb »

The output is correct but the Performance graph is where the percentage shows up.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Perf results in seconds instead of percentage

Post by lmiltchev »

Can you show us the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Perf results in seconds instead of percentage

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked