Following are the configuration files
contacts.cfg
define contact{
contact_name alerts
alias Alerts Inbox
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email
alerts@XXX.com
}
define contact{
contact_name admin
alias admin
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email,notify-by-epager
host_notification_commands host-notify-by-email,host-notify-by-epager
email
admin@XXX.com
contactgroup
define contactgroup{
contactgroup_name all-admins
alias All Administrators
members alerts,admin
}
define contactgroup{
contactgroup_name L1-Escalation
alias First Escalation
members admin-pager,alert
}
define contactgroup{
contactgroup_name L2-Escalation
alias Second Escalation
members admin-pager
}
define contactgroup{
contactgroup_name L3-Escalation
alias Third Escalation
members manager
}
define contactgroup{
contactgroup_name Mgmt-Escalation
alias Third Escalation
members Sysadmin
}
Escalation
define serviceescalation{
host_name test
service_description PING
first_notification 2
last_notification 0
notification_interval 5
contact_groups L1-Escalation
}
define serviceescalation{
host_name test
service_description PING
first_notification 3
last_notification 0
notification_interval 5
contact_groups L2-Escalation
}
define serviceescalation{
host_name test
service_description PING
first_notification 4
last_notification 0
notification_interval 5
contact_groups L3-Escalation
}
define serviceescalation{
host_name test
service_description PING
first_notification 5
last_notification 0
notification_interval 5
contact_groups Mgmt-Escalation
}
Service
define service{
use generic-service ; Name of service template to use
host_name test
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups all-admins
notification_interval 5
notification_period 24x7
notification_options w,u,c,r
check_command check_ping!100.0,20%!500.0,60%
}