<p><code>check_ntp_peer</code> has 4 different thresholds that it checks but one cannot tell from the result message which of the thresholds has been exceeded. This makes it a lot harder to assess where the problem lies or how quickly the alert needs to be responded to, particularly at 04:00 on your cell phone.</p>

<p>I would like the result message to make it clear which of the 4 thresholds have been passed, either by somehow emphasizing the ones in error or only including those in error.  (Values for the other thresholds are already captured by  performance data, so I don't think there would be any loss from leaving them out.) Ideally human-readable threshold ranges could also be included in the message, but given the complexity of threshold specification I can understand leaving this out.</p>

<p>Currently output looks like this:</p>

<pre><code>NTP WARNING: Offset -0.021909 secs, jitter=15.843000, stratum=1, truechimers=15
</code></pre>

<p>or this:</p>

<pre><code>NTP WARNING: Offset -0.002291 secs, jitter=0.659000, stratum=3, truechimers=5
</code></pre>

<p>Without consulting my perfdata or configuration, can you tell which threshold is being exceeded?</p>

<p>Ideally, the output would be something like this:</p>

<pre><code>NTP WARNING: Offset -0.021909 secs, expect 0.010000 > |offset| > 0.100000
</code></pre>

<p>and this:</p>

<pre><code>NTP WARNING: Stratum 3, expect stratum < 2
</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/1236'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNzY4Mzk5NSwiZGF0YSI6eyJpZCI6MjU0NTI4MTN9fQ==--6f9c3ef3559dc8bea59b7eac801551a1e022bff7.gif' height='1' width='1'></p>