[Nagios-devel] patch for unscheduling triggered downtime
Posted: Sun Jul 30, 2006 11:12 am
------=_Part_12168_7048392.1154286729636
Content-Type: multipart/alternative;
boundary="----=_Part_12169_15192569.1154286729636"
------=_Part_12169_15192569.1154286729636
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
------=_Part_12169_15192569.1154286729636
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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 sourcecheers,Graham
------=_Part_12169_15192569.1154286729636--
------=_Part_12168_7048392.1154286729636
Content-Type: application/octet-stream; name=down_unsched.patch
Content-Transfer-Encoding: base64
X-Attachment-Id: f_eq9sda45
Content-Disposition: attachment; filename="down_unsched.patch"
ZGlmZiAtciAtVSAzIG5hZ2lvcy10b2ZpeC9jb21tb24vZG93bnRpbWUuYyBuYWdpb3MtZml4ZWQv
Y29tbW9uL2Rvd250aW1lLmMKLS0tIG5hZ2lvcy10b2ZpeC9jb21tb24vZG93bnRpbWUuYwkyMDA2
LTA3LTMwIDE5OjU2OjIyLjAwMDAwMDAwMCArMDEwMAorKysgbmFnaW9zLWZpeGVkL2NvbW1vbi9k
b3dudGltZS5jCTIwMDYtMDctMzAgMTk6NTc6MzIuMDAwMDAwMDAwICswMTAwCkBAIC0yMTQsNyAr
MjE0LDcgQEAKIAkvKiB1bnNjaGVkdWxlIGFsbCBkb3dudGltZSBlbnRyaWVzIHRoYXQgd2VyZSB0
cmlnZ2VyZWQgYnkgdGhpcyBvbmUgKi8KIAlmb3IodGVtcF9kb3dudGltZT1zY2hlZHVsZWRfZG93
bnRpbWVfbGlzdDt0ZW1wX2Rvd250aW1lIT1OVUxMO3RlbXBfZG93bnRpbWU9dGVtcF9kb3dudGlt
ZS0+bmV4dCl7CiAJCWlmKHRlbXBfZG93bnRpbWUtPnRyaWdnZXJlZF9ieT09ZG93bnRpbWVfaWQp
Ci0JCQl1bnNjaGVkdWxlX2Rvd250aW1lKEFOWV9ET1dOVElNRSxkb3dudGltZV9pZCk7CisJCQl1
bnNjaGVkdWxlX2Rvd250aW1lKEFOWV9ET1dOVElNRSx0ZW1wX2Rvd250aW1lLT5kb3dudGltZV9p
ZCk7CiAJICAgICAgICB9CiAKIAlyZXR1cm4gT0s7Cg==
------=_Part_12168_7048392.1154286729636--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Content-Type: multipart/alternative;
boundary="----=_Part_12169_15192569.1154286729636"
------=_Part_12169_15192569.1154286729636
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
------=_Part_12169_15192569.1154286729636
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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 sourcecheers,Graham
------=_Part_12169_15192569.1154286729636--
------=_Part_12168_7048392.1154286729636
Content-Type: application/octet-stream; name=down_unsched.patch
Content-Transfer-Encoding: base64
X-Attachment-Id: f_eq9sda45
Content-Disposition: attachment; filename="down_unsched.patch"
ZGlmZiAtciAtVSAzIG5hZ2lvcy10b2ZpeC9jb21tb24vZG93bnRpbWUuYyBuYWdpb3MtZml4ZWQv
Y29tbW9uL2Rvd250aW1lLmMKLS0tIG5hZ2lvcy10b2ZpeC9jb21tb24vZG93bnRpbWUuYwkyMDA2
LTA3LTMwIDE5OjU2OjIyLjAwMDAwMDAwMCArMDEwMAorKysgbmFnaW9zLWZpeGVkL2NvbW1vbi9k
b3dudGltZS5jCTIwMDYtMDctMzAgMTk6NTc6MzIuMDAwMDAwMDAwICswMTAwCkBAIC0yMTQsNyAr
MjE0LDcgQEAKIAkvKiB1bnNjaGVkdWxlIGFsbCBkb3dudGltZSBlbnRyaWVzIHRoYXQgd2VyZSB0
cmlnZ2VyZWQgYnkgdGhpcyBvbmUgKi8KIAlmb3IodGVtcF9kb3dudGltZT1zY2hlZHVsZWRfZG93
bnRpbWVfbGlzdDt0ZW1wX2Rvd250aW1lIT1OVUxMO3RlbXBfZG93bnRpbWU9dGVtcF9kb3dudGlt
ZS0+bmV4dCl7CiAJCWlmKHRlbXBfZG93bnRpbWUtPnRyaWdnZXJlZF9ieT09ZG93bnRpbWVfaWQp
Ci0JCQl1bnNjaGVkdWxlX2Rvd250aW1lKEFOWV9ET1dOVElNRSxkb3dudGltZV9pZCk7CisJCQl1
bnNjaGVkdWxlX2Rvd250aW1lKEFOWV9ET1dOVElNRSx0ZW1wX2Rvd250aW1lLT5kb3dudGltZV9p
ZCk7CiAJICAgICAgICB9CiAKIAlyZXR1cm4gT0s7Cg==
------=_Part_12168_7048392.1154286729636--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]