[PATCH] - 3.0.3: only send out a service recovery escalation if a service is recovering from a non-OK state listed in the escalation or only 'r' is specified as an escalation option

Max perldork at webwizarddesign.com
Tue Jul 21 04:40:57 CEST 2009


Hi,

Updated patch that includes logic to walk the service history array if
service_history_index > 1, logic will now return TRUE in
is_valid_service_escalation to cause Nagios to send out a recovery
notification if:
* Previous problem state is listed in the escalation's
escalation_options attribute directly OR
* Any previous problem state (state_history member of the service
struct) *within the scope* of the escalation (where service_history
index value >= 0 AND service_history_index >= first_notification) is
listed in the escalation_options attribute of the service escalation
OR
* No state other than 'r' is listed in the escalation_options
attribute of the service escalation object.

Patch attached.  As before, did my best to conform to the code style
of the notifications.c file.

- max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: notifications.c.patch
Type: application/octet-stream
Size: 3722 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090720/e49cf965/attachment.obj>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list