<p>My usage is /path/to/check_time -H ntp.xs4all.nl --warning-variance=2 --critical-variance=60 --timeout-warning</p>

<blockquote>
<p>60 seconds time diff: CRITICAL<br>
2 seconds time diff: WARNING<br>
server ntp.xs4all.nl unavailable: WARNING (not critical)</p>
</blockquote>

<p>Will your negate command have the same behaviour? isn't it negating the result? OK<->CRITICAL?</p>

<p>Even if it works, I'm not sure if I like your solution. It's not very obvious what is does, my solution seems more self-documenting.</p>

<p>As for the generic solution: The time server being used, is NOT the time server being watched. There are not many tests where a host is used that is not the primary target for the test.<br>
check_http tests a http server and it's response. A timeout on this test is an issue that can be dealt with.</p>

<p>I doubt a --timeout-warning commandline switch would be useful on other tests. In fact: I had the code for it in other checks, thought about it, and removed it for this pull request.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1246#issuecomment-38179972'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMDk0ODA1MiwiZGF0YSI6eyJpZCI6Mjc2MTIzOTF9fQ==--7a123c0c52ecbf72627442397f6b2d28c5102e50.gif' height='1' width='1'></p>