This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C1CB97.D7ACA280
Content-Type: text/plain;
charset="iso-8859-1"
I have attached diffs for notifications.c. This fixes its handling of a
RECOVERY state when a service escalation, host escalation, or hostgroup
escalation was used.
Previously, it would notify only the last valid escalation of a recovery.
This patch will make it notify all previous valid escalations.
I'm resending, because I had neglected to fix the hostgroup escalation code.
Thanks.
-Justin Clarke
------_=_NextPart_000_01C1CB97.D7ACA280
Content-Type: application/octet-stream;
name="notifications.c.diff"
Content-Disposition: attachment;
filename="notifications.c.diff"
552d551
current_state==STATE_OK)
current_notification_number-1;
current_notification_number;
/* if this is a recovery, all previous escalations should be notified of recovery */
> if(svc->current_state==STATE_OK && se->first_notification current_notification_number)
> return TRUE;
>
569c566
first_notification > notification_number)
---
> if(se->first_notification > svc->current_notification_number)
573c570
last_notification!=0 && se->last_notification if(se->last_notification!=0 && se->last_notification current_notification_number)
1149d1145
current_notification_number-1;
current_notification_number;
/* if this is a recovery, all previous escalations should be notified of recovery */
> if(state==HOST_UP && he->first_notification current_notification_number)
> return TRUE;
>
1167c1161
first_notification > notification_number)
---
> if(he->first_notification > hst->current_notification_number)
1171c1165
last_notification!=0 && he->last_notification if(he->last_notification!=0 && he->last_notification current_notification_number)
1185d1178
current_notification_number-1;
current_notification_number;
/* if this is a recovery, all previously valid hostgroup escalations should be notified */
> if(state==HOST_UP && hge->first_notification current_notification_number)
> return TRUE;
>
1207c1198
first_notification > notification_number)
---
> if(hge->first_notification > hst->current_notification_number)
1211c1202
last_notification!=0 && hge->last_notification if(hge->last_notification!=0 && hge->last_notification current_notification_number)
------_=_NextPart_000_01C1CB97.D7ACA280--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: JWCq@pge.com