diff options
| -rw-r--r-- | plugins/check_ntp_peer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 5d21832b..a70e88ce 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
| @@ -234,6 +234,7 @@ int ntp_request(const char *host, double *offset, int *offset_result, double *ji | |||
| 234 | 234 | ||
| 235 | status = STATE_OK; | 235 | status = STATE_OK; |
| 236 | *offset_result = STATE_UNKNOWN; | 236 | *offset_result = STATE_UNKNOWN; |
| 237 | *jitter = *stratum = -1; | ||
| 237 | 238 | ||
| 238 | /* Long-winded explanation: | 239 | /* Long-winded explanation: |
| 239 | * Getting the sync peer offset, jitter and stratum requires a number of | 240 | * Getting the sync peer offset, jitter and stratum requires a number of |
| @@ -576,7 +577,7 @@ int main(int argc, char *argv[]){ | |||
| 576 | break; | 577 | break; |
| 577 | } | 578 | } |
| 578 | if(!syncsource_found) | 579 | if(!syncsource_found) |
| 579 | asprintf(&result_line, "%s %s, ", result_line, _("Server not synchronized")); | 580 | asprintf(&result_line, "%s %s,", result_line, _("Server not synchronized")); |
| 580 | 581 | ||
| 581 | if(offset_result == STATE_UNKNOWN){ | 582 | if(offset_result == STATE_UNKNOWN){ |
| 582 | asprintf(&result_line, "%s %s", result_line, _("Offset unknown")); | 583 | asprintf(&result_line, "%s %s", result_line, _("Offset unknown")); |
