Module: monitoring-plugins
Branch: master
Commit: 16daa06e439da1541cbcb4e0622131838b21ba0f
Author: Lorenz Kästle <[email protected]>
Date: Wed Nov 5 10:41:34 2025 +0100
URL:
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=16daa06e
check_ntp_time: actually accept offset if known
---
plugins/check_ntp_time.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c
index eee9c298..d554089d 100644
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
@@ -478,6 +478,7 @@ static offset_request_wrapper offset_request(const char
*host, const char *port,
if (best_index < 0) {
result.offset_result = STATE_UNKNOWN;
} else {
+ result.offset_result = STATE_OK;
/* finally, calculate the average offset */
for (int i = 0; i < servers[best_index].num_responses; i++) {
avg_offset += servers[best_index].offset[i];