Good catch Graham! This is indeed a bug. The patch will be applied to
CVS shortly. Thanks.
Graham Collinson wrote:
> There appears to be an error in common/downtime.c for unscheduling
> downtimes triggered by the downtime currently being unscheduled:
>
> diff -r -U 3 nagios-tofix/common/downtime.c nagios-fixed/common/downtime.c
> --- nagios-tofix/common/downtime.c 2006-07-30 19:56: 22.000000000 +0100
> +++ nagios-fixed/common/downtime.c 2006-07-30 19:57:32.000000000 +0100
> @@ -214,7 +214,7 @@
> /* unschedule all downtime entries that were triggered by this one */
>
> for(temp_downtime=scheduled_downtime_list;temp_downtime!=NULL;temp_downtime=temp_downtime->next){
>
> if(temp_downtime->triggered_by==downtime_id)
> - unschedule_downtime(ANY_DOWNTIME,downtime_id);
> + unschedule_downtime(ANY_DOWNTIME,temp_downtime->downtime_id);
> }
>
> return OK;
>
>
> or perhaps I misunderstood?
>
>
> patch is against latest cvs source
>
> cheers,
> Graham
Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]