[Nagios-devel] [PATCH 2/2] base/notifications: Handle notified_on

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH 2/2] base/notifications: Handle notified_on

Post by Guest »

From: Robin Sonefors

All other notified_on code ensures that it doesn't unset the old value,
so there seems to be some kind of trick to that. This place doesn't,
though, so make it use the macro for achieving this task instead.

Signed-off-by: Robin Sonefors
---
base/notifications.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base/notifications.c b/base/notifications.c
index 2991c28..2dff2ef 100644
--- a/base/notifications.c
+++ b/base/notifications.c
@@ -1218,7 +1218,7 @@ int host_notification(host *hst, int type, char *not_author, char *not_data, int
hst->last_notification = current_time;

/* update notifications flags */
- hst->notified_on = (1 current_state);
+ add_notified_on(hst, hst->current_state);

log_debug_info(DEBUGL_NOTIFICATIONS, 0, "%d contacts were notified. Next possible notification time: %s", contacts_notified, ctime(&hst->next_notification));
}
--
1.7.11.7






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: robin.sonefors@op5.com
Locked