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

jyoung15 <[email protected]>
Newsgroups gmane.network.nagios.devel
Message-ID <monitoring-plugins/monitoring-plugins/issues/[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.