summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 861d0ba4..ab23249e 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -558,7 +558,10 @@ double jitter_request(const char *host, int *status){
558 } 558 }
559 if(verbose) printf("%d candiate peers available\n", num_candidates); 559 if(verbose) printf("%d candiate peers available\n", num_candidates);
560 if(verbose && syncsource_found) printf("synchronization source found\n"); 560 if(verbose && syncsource_found) printf("synchronization source found\n");
561 if(! syncsource_found) *status = STATE_WARNING; 561 if(! syncsource_found){
562 *status = STATE_WARNING;
563 if(verbose) printf("warning: no synchronization source found\n");
564 }
562 565
563 566
564 for (run=0; run<AVG_NUM; run++){ 567 for (run=0; run<AVG_NUM; run++){