custom service notifications + NOTIFICATIONTYPE macro

Jochen Bern Jochen.Bern at LINworks.de
Fri Dec 3 14:30:23 CET 2010


On 10/07/2010 07:17 PM, Aaron Knister wrote:
> I noticed that custom service notifications
> were being sent out with NOTIFICATIONTYPE set to recovery instead of
> custom as the documentation indicates should be the case.  The "fix"
> seemed fairly straightforward. Here's my patch:

Your patch fixes service_notification(), but not (the almost identical
code in) host_notification(). ;-) New patch below. (Logs and
notifications.cgi are "CUSTOM aware" - anyplace else I should check?)

About the documentation: The online doc page refers to "CUSTOM" being a
valid $NOTIFICATIONTYPE$ value in the desc's of $NOTIFICATIONAUTHOR$ and
$NOTIFICATIONCOMMENT$, but it's absent from the complete list in the
desc of $NOTIFICATIONTYPE$.
http://nagios.sourceforge.net/docs/3_0/macrolist.html#notificationtype

Kind regards,
								J. Bern
-- 
Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios-3.2.3-NotifTypeCustomFix-patch.txt
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20101203/3df23765/attachment.txt>
-------------- next part --------------
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
-------------- 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