diff options
-rw-r--r-- | plugins/check_ntp_peer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index d3ae5999..44424af5 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c @@ -599,17 +599,20 @@ int main(int argc, char *argv[]){ } oresult = result; - if(do_truechimers) + if(do_truechimers) { tresult = get_status(num_truechimers, truechimer_thresholds); result = max_state_alt(result, tresult); + } - if(do_stratum) + if(do_stratum) { sresult = get_status(stratum, stratum_thresholds); result = max_state_alt(result, sresult); + } - if(do_jitter) + if(do_jitter) { jresult = get_status(jitter, jitter_thresholds); result = max_state_alt(result, jresult); + } switch (result) { case STATE_CRITICAL : |