the same event send notification to root and itnetworksupport when i use contacts
Code: Select all
contacts root
Code: Select all
contact_groups admins
Code: Select all
contacts root
Code: Select all
contact_groups admins
if i use contacts root, i will get duplicate alert send to root and itnetworksupport while both root and itnetworksupport use different email address.abrist wrote:Is this not working as intended? If you specify the contact "root" on the object, and that object alerts, it will send to "root". Am I missing something?
Code: Select all
###############################################################################
# contacts.cfg
###############################################################################
###############################################################################
###############################################################################
#
# CONTACTS
#
###############################################################################
###############################################################################
# In this simple config file, a single contact will receive all alerts.
define contact{
name contact-template
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
}
define contact{
contact_name root
alias Root
use contact-template
email xxx1
}
define contact{
contact_name itnetworksupport
alias IT Network Support
use contact-template
email xxxx2
}
###############################################################################
###############################################################################
#
# CONTACT GROUPS
#
###############################################################################
###############################################################################
# We only have one contact in this simple configuration file, so there is
# no need to create more than one contact group.
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members itnetworksupport
}
Code: Select all
define contact{
name contact-template
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
}
Code: Select all
define contact{
name contact-template
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
register 0
}
sorry... i mean using register 0 not workmillisa wrote:For a template, you want to use register 0 like posted above.