<p>running check_snmp -h shows the following</p>
<pre><code>-t, --timeout=INTEGER
Seconds before connection times out (default: 10)
</code></pre>
<p>In check_snmp.c, this comes from DEFAULT_SOCKET_TIMEOUT:</p>
<pre><code>printf (UT_CONN_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
</code></pre>
<p>However the actual timeout is defined in DEFAULT_TIMEOUT (which is 1 second, not 10)</p>
<pre><code>timeout_interval = DEFAULT_TIMEOUT;
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1318">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2cUaR49Ah5j5RYdLdFEZMJ9EDF5Pks5njk7VgaJpZM4DUpLU.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1318"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>