Notification Bug

Terry Simons galimore at mac.com
Mon Sep 9 23:58:46 CEST 2002


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.

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




More information about the Users mailing list