check_snmp default timeout incorrect in --help output (#1318)

jyoung15 notifications at github.com
Tue Jan 20 14:25:41 CET 2015


running check_snmp -h shows the following

    -t, --timeout=INTEGER
        Seconds before connection times out (default: 10)

In check_snmp.c, this comes from DEFAULT_SOCKET_TIMEOUT:

    printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);

However the actual timeout is defined in DEFAULT_TIMEOUT (which is 1 second,
not 10)

    timeout_interval = DEFAULT_TIMEOUT;


-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/issues/1318
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20150120/66447774/attachment.html>


More information about the Devel mailing list