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 /plugins/check_ntp.c | |
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
Diffstat (limited to 'plugins/check_ntp.c')
-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){ | |||
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++){ |