Email sent to default email

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
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

Email sent to default email

Post by kalyan1709 »

Hi,

I have defined contact as below in my contact.cfg:

define contact{
contact_name dbintadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias DB Admin ; Full name of user
email [email protected], [email protected]
}
###########################################################################################################

define contactgroup{
contactgroup_name db_group
alias db_group
# members dbintadmin,nagios-systems,Text
members dbintadmin
}

define contactgroup{
contactgroup_name Dev-dbgroup
alias DB Administrators
members dbintadmin
}

I have created a htpassword for dbintadmin user, So that I can see only specific servers whose contact group is db_group and Dev-dbgroup as defined below:

define host{
use generic-host,host-pnp
host_name WIN2K12-DEV
alias WIN2K12-DEV
address 10.10.28.83
icon_image win40.png
statusmap_image win40.gd2
parents VM3
max_check_attempts 2
contact_groups Dev-dbgroup
}

define host{
use generic-host,host-pnp
host_name DB3
alias DB3
address 10.20.20.80
icon_image win40.png
statusmap_image win40.gd2
parents VM Host 3
max_check_attempts 2
contact_groups db_group
}

The problem is the notification is triggering to another email id instead of [email protected] and [email protected]!!!!

Any suggestions please??

Thanks,
kalyanP
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Email sent to default email

Post by sreinhardt »

Do you know what other email address is being sent the notifications? While I have not tried it, or seen it done before, I do not believe that comma separated lists of email addresses will be handled properly. You would probably be better served to have two contacts and add them both to the contact group, just to be sure that nothing will have an issue.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked