summaryrefslogtreecommitdiff
path: root/net/nagios-base/patches/patch-base_checks.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nagios-base/patches/patch-base_checks.c')
-rw-r--r--net/nagios-base/patches/patch-base_checks.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/nagios-base/patches/patch-base_checks.c b/net/nagios-base/patches/patch-base_checks.c
new file mode 100644
index 00000000000..d71d176b9b1
--- /dev/null
+++ b/net/nagios-base/patches/patch-base_checks.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-base_checks.c,v 1.1.2.2 2016/02/08 10:12:10 bsiegert Exp $
+
+64bit time_t workaround
+
+--- base/checks.c.orig 2016-02-07 21:52:43.000000000 +0100
++++ base/checks.c 2016-02-07 21:54:09.000000000 +0100
+@@ -1320,12 +1320,12 @@
+ if(expected_time < current_time) {
+
+ /* log a warning */
+- logit(NSLOG_RUNTIME_WARNING, TRUE, "Warning: The check of service '%s' on host '%s' looks like it was orphaned (results never came back; last_check=%lu; next_check=%lu). I'm scheduling an immediate check of the service...\n", temp_service->description, temp_service->host_name, temp_service->last_check, temp_service->next_check);
++ logit(NSLOG_RUNTIME_WARNING, TRUE, "Warning: The check of service '%s' on host '%s' looks like it was orphaned (results never came back; last_check=%lu; next_check=%lu). I'm scheduling an immediate check of the service...\n", temp_service->description, temp_service->host_name, (unsigned long)temp_service->last_check, (unsigned long)temp_service->next_check);
+
+ log_debug_info(DEBUGL_CHECKS, 1, "Service '%s' on host '%s' was orphaned, so we're scheduling an immediate check...\n", temp_service->description, temp_service->host_name);
+ log_debug_info(DEBUGL_CHECKS, 1, " next_check=%lu (%s); last_check=%lu (%s);\n",
+- temp_service->next_check, ctime(&temp_service->next_check),
+- temp_service->last_check, ctime(&temp_service->last_check));
++ (unsigned long)temp_service->next_check, ctime(&temp_service->next_check),
++ (unsigned long)temp_service->last_check, ctime(&temp_service->last_check));
+
+ /* decrement the number of running service checks */
+ if(currently_running_service_checks > 0)