Currently, my Nagios configuration will send email and pager alerts to members of a contact_group specified in a host or service definition. See my contact definition below.
I’d like to modify this configuration so that our Unix Administrators receive email and pager notifications for the mission critical services, but only receive email notifications for other, less critical services. A second group may receive pager notifications for the ‘less critical’ services in the future. I don’t want to limit the notifications by a timeperiod.
Is it possible to configure the kind of Notifications within a service or host definitions?
It seems like my best option is to take the contactgroup ‘admin’, and break it into two new contactgroups called ‘admin-email-only’, and ‘admin-pager-only’ and then send the notifications to one or both of those contact groups.
Here is my example configuration.
alias Joe Unix Admin
alias Unix Administrators
members joeadmin, janeadmin
host_name web1, web2
service_description Mission Critical Web Servers
host_name db1, db2
service_description Less Critical Database Servers