Perfmon counter graph label

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Perfmon counter graph label

Post 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?
You do not have the required permissions to view the files attached to this post.
Andrew J. - Do you even grok?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Perfmon counter graph label

Post 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.
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Perfmon counter graph label

Post 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
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Perfmon counter graph label

Post 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!
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.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Perfmon counter graph label

Post 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... ;)
Last edited by vAJ on Wed Dec 03, 2014 10:07 am, edited 1 time in total.
Andrew J. - Do you even grok?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Perfmon counter graph label

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

Re: Perfmon counter graph label

Post by sreinhardt »

Oh boy, the powers that be say there's some spelling corrections needed in that last post.. :P 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!
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.
Locked