Page 1 of 1

SNMPwalk and data units

Posted: Fri Oct 10, 2014 1:10 pm
by jpipitone
I used the configuration wizard to perform an snmpwalk, and I am monitoring interfaces on a remote Sonicwall. Nagios is pulling the values correctly, however I'd like to translate the values into human readable format - such as megabytes.

For example - the values for our interfaces look simiar to: 1914976279

The counters appear to be of type "Counter32"

How can I translate this into MB? When NagiosXI displays the oid values after an snmpwalk, there are a few text fields that I can enter values into - one that stuck out was Data Units. How can I do this?

Thank you

Re: SNMPwalk and data units

Posted: Fri Oct 10, 2014 4:25 pm
by sreinhardt
If this is something such as interface speed, I would highly suggest trying the Network switch and router wizard. It will handle all of this for you! Otherwise you will likely have to write a wrapper script for check_snmp that will modify the output as you need. Unfortunately check_snmp does not provide functionality to manipulate the data once it is received. The only other option would be to use the --rate flag and its fellow modifiers to get a delta of the two most recent checks. You could certainly do it, but it is not the same value as you are currently getting.

Re: SNMPwalk and data units

Posted: Mon Oct 13, 2014 7:14 am
by jpipitone
Well that seems to be working great - thank you!