SNMPwalk and data units

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

SNMPwalk and data units

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

Re: SNMPwalk and data units

Post 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.
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.
jpipitone
Posts: 102
Joined: Tue Oct 12, 2010 1:21 pm

Re: SNMPwalk and data units

Post by jpipitone »

Well that seems to be working great - thank you!
Locked