Page 1 of 1
SNMP Performance Data Graph Scale
Posted: Thu May 10, 2012 1:35 pm
by GldRush98
We have some SNMP checks set up that are monitoring data traffic for some virtual web sites.
We have the check working and we are getting performance data logged in to Nagios, but the unit of measurement is somewhat confusing.
The labels are simply "c". How can we configure a UOM on these services to something more logical like megabits per second, so that the graph shows this?
Here is an example of what we currently see:
graphApi.png
And here is what one of the services looks like:
check_xi_service_snmp! -o .1.3.6.1.4.1.1991.1.1.4.25.1.1.7.10.10.98.149 -C activewebsite -P 2c -u Bytes -l Interface Traffic!!!!!!!
The unit there is specified as Bytes, but it doesn't appear to be graphing that way.
So, how can we change this?
Re: SNMP Performance Data Graph Scale
Posted: Thu May 10, 2012 2:20 pm
by scottwilkerson
If you go to the service detail page for this service on the advanced tab, what does it say under performance data:?
Re: SNMP Performance Data Graph Scale
Posted: Fri May 11, 2012 2:10 pm
by GldRush98
Performance Data:iso.3.6.1.4.1.1991.1.1.4.25.1.1.7.10.10.98.142=2982558408c
Re: SNMP Performance Data Graph Scale
Posted: Sat May 12, 2012 6:43 pm
by scottwilkerson
performance data must be numeric, your has a c at the end
Re: SNMP Performance Data Graph Scale
Posted: Sat May 12, 2012 9:46 pm
by Box293
I think that to change the performance data you need to use the -l (lowercase L) AND encapsulape the output in double quotes.
-l "Bytes"
Code: Select all
check_xi_service_snmp! -o .1.3.6.1.4.1.1991.1.1.4.25.1.1.7.10.10.98.149 -C activewebsite -P 2c -u Bytes -l "Interface Traffic!!!!!!!"
or
Code: Select all
check_xi_service_snmp! -o .1.3.6.1.4.1.1991.1.1.4.25.1.1.7.10.10.98.149 -C activewebsite -P 2c -u Bytes -l "Bytes"
Or for no label do
-l ""
Code: Select all
check_xi_service_snmp! -o .1.3.6.1.4.1.1991.1.1.4.25.1.1.7.10.10.98.149 -C activewebsite -P 2c -u Bytes -l ""
Re: SNMP Performance Data Graph Scale
Posted: Mon May 14, 2012 4:25 pm
by GldRush98
Ok, I'll give that a shot and post what works.
Is there no way to have it graph that bytes value as something more friendly like megabytes? I thought the graph would scale it accordingly... or maybe it will once it is receiving good data?
I have it updated and am just waiting for all new data to cycle in to see what it will do. I should have an answer tomorrow morning.
Re: SNMP Performance Data Graph Scale
Posted: Fri Jun 01, 2012 9:17 pm
by Box293
How did you go with this? Did you get the result you were after?
Re: SNMP Performance Data Graph Scale
Posted: Mon Jun 18, 2012 2:33 pm
by GldRush98
Sorry about not getting back sooner, but yes, I ended up using this one:
check_xi_service_snmp! -o .1.3.6.1.4.1.1991.1.1.4.25.1.1.7.10.10.98.149 -C activewebsite -P 2c -u Bytes -l "Bytes"
And that produced the output we were looking for. Thank you for your assistance.
