Page 1 of 1
Check SNMP - Convert Bytes to MB or GB
Posted: Tue Jun 23, 2015 4:07 pm
by CFT6Server
We are using SNMP and checking for an OID that returns bytes. Are there any switches I can use or perhaps something to include in the argument that can convert the bytes to MB/GB?
Re: Check SNMP - Convert Bytes to MB or GB
Posted: Tue Jun 23, 2015 4:46 pm
by abrist
Not really. check_snmp just returns the value for the oid in question, unaltered. You would have to create a wrapper script for the check, or look at using one of the plugins that are specifically intended for bandwidth-type (I assume that is what you are trying to check) checks:
https://exchange.nagios.org/index.php?o ... =bandwidth