diff --git a/roles/nagios_server/files/nagios-external/contactgroups/fedora-sysadmin-ircbot.cfg b/roles/nagios_server/files/nagios-external/contactgroups/fedora-sysadmin-ircbot.cfg new file mode 100644 index 0000000000..8c13d17af9 --- /dev/null +++ b/roles/nagios_server/files/nagios-external/contactgroups/fedora-sysadmin-ircbot.cfg @@ -0,0 +1,5 @@ +define contactgroup{ + contactgroup_name fedora-sysadmin-ircbot + alias Fedora Sysadmin irc Contacts + members ircbot + } diff --git a/roles/nagios_server/files/nagios-external/contacts/ircbot.cfg b/roles/nagios_server/files/nagios-external/contacts/ircbot.cfg new file mode 100644 index 0000000000..9f3d4fee2e --- /dev/null +++ b/roles/nagios_server/files/nagios-external/contacts/ircbot.cfg @@ -0,0 +1,10 @@ +define contact{ + contact_name ircbot + alias ZOD + 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-ircbot + host_notification_commands host-notify-by-ircbot +} diff --git a/roles/nagios_server/files/nagios-external/contacts/ricky.cfg b/roles/nagios_server/files/nagios-external/contacts/ricky.cfg index eacf3c836f..10b41b01bb 100644 --- a/roles/nagios_server/files/nagios-external/contacts/ricky.cfg +++ b/roles/nagios_server/files/nagios-external/contacts/ricky.cfg @@ -5,8 +5,8 @@ define contact{ 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-ircbot - host_notification_commands host-notify-by-email,host-notify-by-ircbot + service_notification_commands notify-by-email + host_notification_commands host-notify-by-email email ricky@rzhou.org } diff --git a/roles/nagios_server/files/nagios-external/escalations.cfg b/roles/nagios_server/files/nagios-external/escalations.cfg new file mode 100644 index 0000000000..e4fc8ea51d --- /dev/null +++ b/roles/nagios_server/files/nagios-external/escalations.cfg @@ -0,0 +1,22 @@ +define hostescalation{ + host_name * + hostgroup_name * + contact_groups fedora-sysadmin-email,fedora-sysadmin-emergency,fedora-sysadmin-ircbot + first_notification 2 + last_notification 0 + notification_interval 60 + escalation_period 24x7 + escalation_options d,u,r +} + + +define serviceescalation{ + host_name * + hostgroup_name * + contact_groups fedora-sysadmin-email,fedora-sysadmin-emergency,fedora-sysadmin-ircbot + first_notification 2 + last_notification 0 + notification_interval 60 + escalation_period 24x7 + escalation_options w,u,c,r +} diff --git a/roles/nagios_server/files/nagios-external/hosts/templates.cfg b/roles/nagios_server/files/nagios-external/hosts/templates.cfg index f1167cb8ef..5618dde226 100644 --- a/roles/nagios_server/files/nagios-external/hosts/templates.cfg +++ b/roles/nagios_server/files/nagios-external/hosts/templates.cfg @@ -6,10 +6,10 @@ define host { failure_prediction_enabled 0 retain_status_information 1 retain_nonstatus_information 1 - notification_interval 480 + notification_interval 10 notifications_enabled 1 notification_options d,r - contact_groups fedora-sysadmin-email,fedora-sysadmin-pager + contact_groups fedora-sysadmin-ircbot register 0 } diff --git a/roles/nagios_server/files/nagios-external/nagios.cfg b/roles/nagios_server/files/nagios-external/nagios.cfg index 6e44de2ce4..722b4284ea 100644 --- a/roles/nagios_server/files/nagios-external/nagios.cfg +++ b/roles/nagios_server/files/nagios-external/nagios.cfg @@ -48,7 +48,7 @@ cfg_file=/etc/nagios/misccommands.cfg #cfg_file=/etc/nagios/contactgroups.cfg #cfg_file=/etc/nagios/contacts.cfg #cfg_file=/etc/nagios/dependencies.cfg -#cfg_file=/etc/nagios/escalations.cfg +cfg_file=/etc/nagios/escalations.cfg #cfg_file=/etc/nagios/hostgroups.cfg #cfg_file=/etc/nagios/hosts.cfg #cfg_file=/etc/nagios/services.cfg diff --git a/roles/nagios_server/files/nagios-external/services/templates.cfg b/roles/nagios_server/files/nagios-external/services/templates.cfg index 1535cf6186..f5efca2714 100644 --- a/roles/nagios_server/files/nagios-external/services/templates.cfg +++ b/roles/nagios_server/files/nagios-external/services/templates.cfg @@ -4,10 +4,10 @@ define service { normal_check_interval 5 retry_check_interval 1 check_period 24x7 - notification_interval 360 + notification_interval 10 notification_period 24x7 notification_options w,u,c,r - contact_groups fedora-sysadmin-email,fedora-sysadmin-pager + contact_groups fedora-sysadmin-ircbot register 0 } @@ -19,10 +19,10 @@ define service { normal_check_interval 10 retry_check_interval 1 check_period 24x7 - notification_interval 360 + notification_interval 10 notification_period 24x7 notification_options w,u,c,r - contact_groups fedora-sysadmin-email + contact_groups fedora-sysadmin-ircbot register 0 } @@ -33,10 +33,10 @@ define service { normal_check_interval 30 retry_check_interval 1 check_period 24x7 - notification_interval 360 + notification_interval 10 notification_period 24x7 notification_options w,u,c,r - contact_groups fedora-sysadmin-email,fedora-sysadmin-pager + contact_groups fedora-sysadmin-ircbot register 0 } @@ -47,10 +47,10 @@ define service { normal_check_interval 480 retry_check_interval 5 check_period 24x7 - notification_interval 500 + notification_interval 10 notification_period 24x7 notification_options w,u,c,r - contact_groups fedora-sysadmin-email + contact_groups fedora-sysadmin-ircbot register 0 } @@ -61,10 +61,10 @@ define service { normal_check_interval 5 retry_check_interval 1 check_period 24x7 - notification_interval 360 + notification_interval 10 notification_period 24x7 notification_options w,u,c,r - contact_groups fedora-sysadmin-email,fedora-sysadmin-pager + contact_groups fedora-sysadmin-ircbot register 0 }