Page 1 of 1
Perfmon counter graph label
Posted: Tue Dec 02, 2014 11:06 am
by vAJ
I'm having no luck fixing a problem that has bugged me for a while.
All perfmon counters pulled with check_nt all put % as the units.
Code: Select all
-l "\\Web Service(_Total)\\Current Connections","Active Connections: %.f" -w 1800 -c 2500
graph_unit_label.JPG
I have to use the %.f floating point as I want whole numbers. I've tried a third option in the -l variable string, but it only adds to the label.
Thoughts on how to force a different unit label?
Re: Perfmon counter graph label
Posted: Tue Dec 02, 2014 4:41 pm
by sreinhardt
Honestly, I don't believe check_nt supports altering units field in particular. If you asked really really nicely(or preferably posted an issue on github), I might be inclined to make a -u units flag to alter this. Based on the help output, this might be a counter specific thing, as it states that if the description field (%.f) doesn't contain a % it is considered a label specifically.
Re: Perfmon counter graph label
Posted: Tue Dec 02, 2014 4:51 pm
by WillemDH
You could use nrpe or use this Powershell plugin I wrote to get connections?
http://exchange.nagios.org/directory/Pl ... ns/details
Grtz
Re: Perfmon counter graph label
Posted: Tue Dec 02, 2014 5:03 pm
by sreinhardt
I'm going to guess this extends to other counters than just the one mentioned, but yes this is definitely another good possibility!
Re: Perfmon counter graph label
Posted: Tue Dec 02, 2014 5:07 pm
by vAJ
Willem, I'm digging a lot of your plugins.
Spenser, I'll work up my pretty please just in case. We can't all bring cupcakes to the office...

Re: Perfmon counter graph label
Posted: Tue Dec 02, 2014 5:51 pm
by slansing
Great, now you've gone and made me hungry... Yeah please let us know how your testing goes, I was doing some looking into check_nt and came to the same conclusion sreinhardt did. I did stumble across a check_nrpe plugin, and it may have been Willem's that could offer unit shaping.
Re: Perfmon counter graph label
Posted: Tue Dec 02, 2014 5:53 pm
by sreinhardt
Oh boy, the powers that be say there's some spelling corrections needed in that last post..

It's ok, I usually am more than happy with a polite issue posting and decent description of what you'd like to see added. Not that you haven't here already, but for the internets sake, they need the full description.
I would note, I do have a perf counter plugin specifically for nsclient\ncpa that is agnostic to the counter. It's been a while since I've actually used it, but it worked pretty well then. I'll find a link if thats a route you'd want to venture, otherwise C land makes me happy so post issues please!