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

Reply via email to