From eac5cdc26fd8c5e38690dc242b462e3ff3d68415 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 31 Mar 2007 17:35:08 +0000 Subject: Add a warning to the verbose output if jitter_request() found no synchronization source. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1665 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 861d0ba..ab23249 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c @@ -558,7 +558,10 @@ double jitter_request(const char *host, int *status){ } if(verbose) printf("%d candiate peers available\n", num_candidates); if(verbose && syncsource_found) printf("synchronization source found\n"); - if(! syncsource_found) *status = STATE_WARNING; + if(! syncsource_found){ + *status = STATE_WARNING; + if(verbose) printf("warning: no synchronization source found\n"); + } for (run=0; run