Notification Bug

Subhendu Ghosh sghosh at sghosh.org
Tue Sep 10 00:47:26 CEST 2002


Inline.

On Mon, 9 Sep 2002, Terry Simons wrote:

> Hi,
> 
> A while ago I posted that it seemed like I was getting duplicate 
> messages about outages with Nagios, and that I'd post more when I could 
> determine whether or not it was true...   Today I noticed that it is 
> indeed a problem.
> 
> Here's the problem:
> 
> Bob, Joe, and Sam are all including a "default" template for their 
> contact information.
> 
> Bob, Joe, Sam, and the default template are members of the contact 
> group.  (I did this because I wanted bob, joe, and sam to have separate 
> logins for the web interface, but their notifications need to go to the 
> same mailing list... the config below explains better than I can.)
> 
> What I'm noticing is that for each notification that gets sent out, I 
> get 4 copies of said notification.
> 
> This seems like it shouldn't happen based on the filtering rules for 
> notifications... My understanding is that Nagios should only send one 
> notification out for each E-mail address/pager/whatever if duplicates 
> exist.


No - Nagios will send one notification for each contact per email and 
pager.

If you all contact have the same email, Nagios doesn't care, because the 
contacts are what is indexed and they are different.



> 
> Here are the relevant configs: (names and E-mail addresses have been 
> changed)
> 
> The 4 contacts which have the same E-mail are microgroup-email, bob, 
> joe, and sam.
> 
> bob, joe, and sam get that information from microgroup-email, as 
> microgroup-email is the template... but it appears that for all 4 of 
> these contacts a separate E-mail is getting sent out.
> 
> define contactgroup{
>          contactgroup_name       microgroup
>          alias                   Micro Group
>          members                 microgroup-pager, microgroup-email, 
> bob, joe, sam
> }
> 
> define contact{
>          contact_name                    microgroup-pager
>          alias                           Microgroup via Pager
>          service_notification_period     microgroup-pager
>          host_notification_period        microgroup-pager
>          service_notification_options    u,c,r
>          host_notification_options       d,u,r
>          service_notification_commands   svc-notify-by-pager
>          host_notification_commands      host-notify-by-pager
>          pager                           microgroup
> }
> 
> define contact{
>          name                            microgroup-default
>          contact_name                    microgroup-email
>          alias                           Microgroup via E-mail
>          service_notification_period     24x7
>          host_notification_period        24x7
>          service_notification_options    u,c,r
>          host_notification_options       d,u,r
>          service_notification_commands   svc-notify-by-email
>          host_notification_commands      host-notify-by-email
>          email                           list1 at foo.com, list2 at foo.com
> }
> 
> define contact{
>          use                             microgroup-default
>          contact_name                    sam
> }
> 
> define contact{
>          use                             microgroup-default
>          contact_name                    joe
> }
> 
> define contact{
>          use                             microgroup-default
>          contact_name                    bob
> }
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list