check_snmp and offset (#1306)
Andreas Steinel
notifications at github.com
Mon Dec 15 12:08:01 CET 2014
Hi,
I'm trying to subtract something from the given value, but it does not work.
Maybe I do not understand it correctly, but have a look:
<pre>
$ ./check_snmp --version
check_snmp v2.1.1.37.g8235 (monitoring-plugins 2.1.1)
$ ./check_snmp -o IF-MIB::ifSpeed.1 --offset=-999900.0 -u MBit -m
RFC1213-MIB -l Speed switch
SNMP OK - Speed 100000000 MBit | Speed=100000000
$ ./check_snmp -o IF-MIB::ifSpeed.1 --offset=999900.0 -u MBit -m RFC1213-MIB
-l Speed switch
SNMP OK - Speed 100000000 MBit | Speed=100000000
$ ./check_snmp -o IF-MIB::ifSpeed.1 --offset=999900 -u MBit -m RFC1213-MIB
-l Speed switch
SNMP OK - Speed 100000000 MBit | Speed=100000000
$ ./check_snmp -o IF-MIB::ifSpeed.1 --offset -999900 -u MBit -m RFC1213-MIB
-l Speed switch
SNMP OK - Speed 100000000 MBit | Speed=100000000
</pre>
--
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/issues/1306
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20141215/5dc3d58c/attachment.html>
More information about the Devel
mailing list