Check SNMP - Convert Bytes to MB or GB

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Check SNMP - Convert Bytes to MB or GB

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Check SNMP - Convert Bytes to MB or GB

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked