Unit Counters and PNP4Nagios
Posted: Thu Feb 16, 2012 10:29 am
Hello all, I am having a pair of issues, centered on unit counters and getting pnp4nagios to graph them properly.
The unit counter issue stems from the command that I am using to check the current disk latency via the "Avg Disk/sec Transfer" Windows performance counter:
Admittedly I have some kinks to work out, as I doubt that the disk has a mere one millisecond latency, but you get the idea. I want to include up to three decimal places since the output is in seconds, and I'd like to have the measurement include the millisecond place. However, when I do this it includes the %.3f in the "Datasource" graph headers in PNP4Nagios, al la "Datasource: Response Time: %.3f". In addition, PNP4Nagios is trying to graph it as a percentage and not as a normal number, which makes it essentially worthless as I'm now graphing numbers vastly less than one on a scale that goes to 100.
Taking a step back, am I just going about this the wrong way, or is there a way that I can clean up the output and then create a template for the graphing? I've spent considerable time searching this forum as well as online in general, but I can't seem to grasp how to achieve this goal.
The unit counter issue stems from the command that I am using to check the current disk latency via the "Avg Disk/sec Transfer" Windows performance counter:
Code: Select all
check_nt -H X.X.X.X -p XXXX -v COUNTER -l "\\LogicalDisk(C:)\\Avg. Disk sec/Transfer","Response Time: %.3f"
Response Time: 0.001 | 'Response Time: %.3f'=0.000500%;0.000000;0.000000;Taking a step back, am I just going about this the wrong way, or is there a way that I can clean up the output and then create a template for the graphing? I've spent considerable time searching this forum as well as online in general, but I can't seem to grasp how to achieve this goal.