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

Reply via email to