Check SNMP - Convert Bytes to MB or GB
-
CFT6Server
- Posts: 506
- Joined: Wed Apr 15, 2015 4:21 pm
Check SNMP - Convert Bytes to MB or GB
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
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
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.
"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.