[Nagios-devel] Bug?: Custom notifications ignore contact notification options

Paul M. Dubuc work at paul.dubuc.org
Mon Aug 1 20:10:14 CEST 2011


Jochen Bern wrote:
> On 07/27/2011 11:00 PM, Paul M. Dubuc wrote:
>> I just discovered what looks like a possible bug in the "Send custom
>> host/service notification" command in Nagios 3.2.3. [...] The command
>> description says that "Custom notifications normally follow the regular
>> notification logic in Nagios. [...]"
>> I didn't use either the Forced or Broadcast option and the OK status
>> notification goes to contacts that have only 'c' (critical) or 'd' (down) for
>> their service/host_notification_options and escalation_options.  Is this a
>> bug?  Seems like this should only happen if the Broadcast option is checked.
>
> FWIW: Nagios suppresses regular OK/RECOVERY notifications unless the
> contact in question did get a notification for the preceding non-OK
> state. In your case, there *was no* preceding non-OK state, so if the
> analogy were taken *that* far, CUSTOM notifications for services in an
> OK state would *never* get sent. I don't think you'd want that. ;-)
>
> CUSTOM notifications carry the current state as additional information,
> not as their raison d'être - pretty much like FLAPPINGSTART and -STOP
> notifications. The reach of FLAPPING* notifications is controlled by
> their own notification_option, 'f'. It would certainly be possible to
> define a new notification_option for CUSTOM notifications, but unless
> you can restrict the semantics of such notifications to something
> narrower than "whatever the guy was thinking when he typed the
> gobbledygook into the comment field", I fail to see how a contact could
> be really sure that such notifications will never be relevant to him.
>
> Regards,
> 								J. Bern

Thanks for the response. I'm still puzzled, thought.  If it makes sense to 
override the regular notification logic for custom notifications, what is the 
point of having the Broadcast option?

Paul Dubuc

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list