mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-07-16 22:37:50 -04:00
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
This commit is contained in:
parent
7770530829
commit
eac5cdc26f
1 changed files with 4 additions and 1 deletions
|
|
@ -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++){
|
||||
|
|
|
|||
Loading…
Reference in a new issue