Code

Add a warning to the verbose output if jitter_request() found no
authorHolger Weiss <hweiss@users.sourceforge.net>
Sat, 31 Mar 2007 17:35:08 +0000 (17:35 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Sat, 31 Mar 2007 17:35:08 +0000 (17:35 +0000)
synchronization source.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1665 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_ntp.c

index 861d0ba43eda140ea7111c1c39dedac13d8cad9e..ab23249e1565c70cfce956ecc03acdfcc723549e 100644 (file)
@@ -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<AVG_NUM; run++){