diff options
author | Holger Weiss <hweiss@users.sourceforge.net> | 2007-03-31 17:35:08 +0000 |
---|---|---|
committer | Holger Weiss <hweiss@users.sourceforge.net> | 2007-03-31 17:35:08 +0000 |
commit | eac5cdc26fd8c5e38690dc242b462e3ff3d68415 (patch) | |
tree | ce772cfecdbe5f915e6fb5bef4bc138dcf4dfe3d | |
parent | 7770530829708d091629a71abcdba808ab73f830 (diff) | |
download | monitoring-plugins-eac5cdc26fd8c5e38690dc242b462e3ff3d68415.tar.gz |
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
-rw-r--r-- | plugins/check_ntp.c | 5 |
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){ } 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++){ |