[Nagios-devel] notification_options seperate downtime start and =

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] notification_options seperate downtime start and =

Post by Guest »

--_002_EE3A1BACBCC01D44B6567D08396088CD3BA17ACFE8EXVMBX0166exc_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Here is a patch to 3.0.2. It will add the 'e' or 'downtimestop' option to =
'service_notification_options' and 'host_notification_options'. I'll write=
up a patch for host and service definations at a later time. The function=
ality of the 's' option is unchanged and will cause all downtime notificati=
ons to be sent.

I don't think I missed anything other than the documentation. Tested it ri=
ght now.
---
Larry Low
480.385.7045 (w) | [email protected] | www.telesphere.com
9237 E Via de Ventura | Suite 250 | Scottsdale, AZ 85258
________________________________________
From: [email protected] [nagios-devel-bounces@list=
s.sourceforge.net] On Behalf Of Larry Low [[email protected]]
Sent: Friday, September 12, 2008 2:53 PM
To: [email protected]
Subject: [Nagios-devel] notification_options seperate downtime start and =
stop/cancel

The notifications_options need to seperate out downtime start and stop. I =
know during most of the maintenance we have that we can care less that they=
have started but only care when they have stopped to verify they are recov=
ered.

I also noticed the 3.0 documentation is missing the 's' option for service_=
notification_options though the code shows it is implemented.

I'll write up a patch to 3.0.2 and send it shortly that implements the 'e' =
option that will alarm only on downtime stop or cancel.

---
Larry Low

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challeng=
e
Build the coolest Linux based applications with Moblin SDK & win great priz=
es
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php? ... 00&url=3D/
_______________________________________________
Nagios-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-devel

--_002_EE3A1BACBCC01D44B6567D08396088CD3BA17ACFE8EXVMBX0166exc_
Content-Type: application/octet-stream;
name="nagios-3.0.2-downtimestopnotify.patch"
Content-Description: nagios-3.0.2-downtimestopnotify.patch
Content-Disposition: attachment;
filename="nagios-3.0.2-downtimestopnotify.patch"; size=14206;
creation-date="Fri, 12 Sep 2008 15:56:55 GMT";
modification-date="Fri, 12 Sep 2008 15:56:55 GMT"
Content-Transfer-Encoding: base64

LS0tIGJhc2Uvbm90aWZpY2F0aW9ucy5jLm9yaWcJMjAwOC0wMi0yOCAxMjoyNjoyNy4wMDAwMDAw
MDAgLTA3MDAKKysrIGJhc2Uvbm90aWZpY2F0aW9ucy5jCTIwMDgtMDktMTIgMTU6MTE6MTQuMDAw
MDAwMDAwIC0wNzAwCkBAIC01ODUsMTMgKzU4NSwyMiBAQAogCWlmKHR5cGU9PU5PVElGSUNBVElP
Tl9ET1dOVElNRVNUQVJUIHx8IHR5cGU9PU5PVElGSUNBVElPTl9ET1dOVElNRUVORCB8fCB0eXBl
PT1OT1RJRklDQVRJT05fRE9XTlRJTUVDQU5DRUxMRUQpewogCiAJCWlmKGNudGN0LT5ub3RpZnlf
b25fc2VydmljZV9kb3dudGltZT09RkFMU0UpewotCQkJbG9nX2RlYnVnX2luZm8oREVCVUdMX05P
VElGSUNBVElPTlMsMiwiV2Ugc2hvdWxkbid0IG5vdGlmeSB0aGlzIGNvbnRhY3QgYWJvdXQgRE9X
TlRJTUUgc2VydmljZSBldmVudHMuXG4iKTsKKwkJCWxvZ19kZWJ1Z19pbmZvKERFQlVHTF9OT1RJ
RklDQVRJT05TLDIsIldlIHNob3VsZG4ndCBub3RpZnkgdGhpcyBjb250YWN0IGFib3V0IERPV05U
SU1FU1RBUlQgc2VydmljZSBldmVudHMuXG4iKTsKIAkJCXJldHVybiBFUlJPUjsKIAkJICAgICAg
ICB9CiAKIAkJcmV0dXJuIE9LOwogCSAgICAgICAgfQogCisJaWYodHlwZT09Tk9USUZJQ0FUSU9O
X0RPV05USU1FRU5EIHx8IHR5cGU9PU5PVElGSUNBVElPTl9ET1dOVElNRUNBTkNFTExFRCl7CisJ
CWlmKGNudGN0LT5ub3RpZnlfb25fc2VydmljZV9kb3dudGltZXN0b3A9PUZBTFNFKXsKKwkJCWxv
Z19kZWJ1Z19pbmZvKERFQlVHTF9OT1RJRklDQVRJT05TLDIsIldlIHNob3VsZG4ndCBub3RpZnkg
dGhpcyBjb250YWN0IGFib3V0IERPV05USU1FRU5EL0RPV05USU1FQ0FOQ0VMTEVEIHNlcnZpY2Ug
ZXZlbnRzLlxuIik7CisJCQlyZXR1cm4gRVJST1I7CisJCQl9CisKKwkJcmV0dXJuIE9LOworCQl9
CisKIAkvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8KIAkvKioqIEFDS1Mg
QU5EIE5PUk1BTCBOT1RJRklDQVRJT05TICoqKi8KIAkvKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKi8KQEAgLTE0NDAsNyArMTQ0OSw3IEBACiAJaWYodHlwZT09Tk9USUZJQ0FU
SU9OX0RPV05USU1FU1RBUlQgfHwgdHlwZT09Tk9USUZJQ0FUSU9OX0RPV05USU1FRU5EIHx8IHR5
cGU9PU5P

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected] [nagios-devel-bounces@list
Locked