[Nagios-devel] is_volatile broken with notification_ interval 0 ?
Posted: Tue Feb 10, 2004 12:03 pm
--=-E1+TGXqPQx1EzhNfm/AI
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi.
When a service is configured volatile and its notification interval is
0, I expected it should renotify at every hard state non-OK status.
On nagios-1.1 and 1.2, this doesn't occur.
here's a oneliner to resolve this.
Eldad Zack
--=-E1+TGXqPQx1EzhNfm/AI
Content-Disposition: attachment; filename=nagios-is_volatile-fix-1394.patch
Content-Type: text/x-patch; name=nagios-is_volatile-fix-1394.patch; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit
--- notifications.c.orig Mon Feb 9 02:10:24 2004
+++ notifications.c Mon Feb 9 11:14:51 2004
@@ -1394,8 +1394,8 @@
}
- /* if notification interval is 0, we shouldn't send any more problem notifications */
- if(interval_to_use==0)
+ /* if notification interval is 0, we shouldn't send any more problem notifications, unless it is volatile */
+ if(interval_to_use==0 && svc->is_volatile==FALSE)
svc->no_more_notifications=TRUE;
else
svc->no_more_notifications=FALSE;
--=-E1+TGXqPQx1EzhNfm/AI--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi.
When a service is configured volatile and its notification interval is
0, I expected it should renotify at every hard state non-OK status.
On nagios-1.1 and 1.2, this doesn't occur.
here's a oneliner to resolve this.
Eldad Zack
--=-E1+TGXqPQx1EzhNfm/AI
Content-Disposition: attachment; filename=nagios-is_volatile-fix-1394.patch
Content-Type: text/x-patch; name=nagios-is_volatile-fix-1394.patch; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit
--- notifications.c.orig Mon Feb 9 02:10:24 2004
+++ notifications.c Mon Feb 9 11:14:51 2004
@@ -1394,8 +1394,8 @@
}
- /* if notification interval is 0, we shouldn't send any more problem notifications */
- if(interval_to_use==0)
+ /* if notification interval is 0, we shouldn't send any more problem notifications, unless it is volatile */
+ if(interval_to_use==0 && svc->is_volatile==FALSE)
svc->no_more_notifications=TRUE;
else
svc->no_more_notifications=FALSE;
--=-E1+TGXqPQx1EzhNfm/AI--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]