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.
Perf results in seconds instead of percentage
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Perf results in seconds instead of percentage
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.
Re: Perf results in seconds instead of percentage
The output is correct but the Performance graph is where the percentage shows up.
Re: Perf results in seconds instead of percentage
Can you show us the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
- 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
I suggest you change to check_nrpe.
Which gives you:
Note: If you use the same service name you should delete the existing .rrd and .xml files just so the performance data is correct.
Code: Select all
./check_nrpe -H 192.168.1.100 -c CheckCounter -a "Counter=\\LogicalDisk(_Total)\\Avg. Disk Sec/Read" ShowAll MaxWarn=100 MaxCrit=200Code: Select all
OK: \LogicalDisk(_Total)\Avg. Disk Sec/Read: 0|'\LogicalDisk(_Total)\Avg. Disk Sec/Read'=0;100;200;As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.