You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use the check_snmp plugin with the -t flag, it sends the wrong value for -t to /usr/bin/snmpget. For instance, if you tell it to use a timeout of 30, it sends 7 to snmpget.
This is working as designed. The timeout sent to snmpget is the -t timeout (defaults to 10 seconds) divided by the number of retries (defaults to 5) plus 1. So using defaults: 10 / 5 + 1 = 3. Using -t 30 results in 30 / 5 + 1 = 7.
The reasoning is -t is the plugin timeout, not the socket timeout. Plugin timeout divided by number of retries is the socket timeout.
If you use the check_snmp plugin with the -t flag, it sends the wrong value for -t to /usr/bin/snmpget. For instance, if you tell it to use a timeout of 30, it sends 7 to snmpget.
Example output:
[root@core libexec]# ./check_snmp -H x.x.x.x -t 30 -o sysName.0 -vvv
/usr/local/bin/snmpget -Le -t 7 -r 5 -m ALL -v 1 [authpriv] x.x.x.x:161 sysName.0
Notice the -t 30 and -t 7
https://support.nagios.com/forum/viewtopic.php?f=35&t=36087&p=163900#p163900
The text was updated successfully, but these errors were encountered: