Fix nagios-external to behave too

This commit is contained in:
Kevin Fenzi 2015-03-13 16:02:06 +00:00
parent 55bc28fdd8
commit 762efa4867
7 changed files with 52 additions and 15 deletions

View file

@ -0,0 +1,5 @@
define contactgroup{
contactgroup_name fedora-sysadmin-ircbot
alias Fedora Sysadmin irc Contacts
members ircbot
}

View file

@ -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
}

View file

@ -5,8 +5,8 @@ define contact{
host_notification_period 24x7 host_notification_period 24x7
service_notification_options w,u,c,r service_notification_options w,u,c,r
host_notification_options d,u,r host_notification_options d,u,r
service_notification_commands notify-by-email,notify-by-ircbot service_notification_commands notify-by-email
host_notification_commands host-notify-by-email,host-notify-by-ircbot host_notification_commands host-notify-by-email
email ricky@rzhou.org email ricky@rzhou.org
} }

View file

@ -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
}

View file

@ -6,10 +6,10 @@ define host {
failure_prediction_enabled 0 failure_prediction_enabled 0
retain_status_information 1 retain_status_information 1
retain_nonstatus_information 1 retain_nonstatus_information 1
notification_interval 480 notification_interval 10
notifications_enabled 1 notifications_enabled 1
notification_options d,r notification_options d,r
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager contact_groups fedora-sysadmin-ircbot
register 0 register 0
} }

View file

@ -48,7 +48,7 @@ cfg_file=/etc/nagios/misccommands.cfg
#cfg_file=/etc/nagios/contactgroups.cfg #cfg_file=/etc/nagios/contactgroups.cfg
#cfg_file=/etc/nagios/contacts.cfg #cfg_file=/etc/nagios/contacts.cfg
#cfg_file=/etc/nagios/dependencies.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/hostgroups.cfg
#cfg_file=/etc/nagios/hosts.cfg #cfg_file=/etc/nagios/hosts.cfg
#cfg_file=/etc/nagios/services.cfg #cfg_file=/etc/nagios/services.cfg

View file

@ -4,10 +4,10 @@ define service {
normal_check_interval 5 normal_check_interval 5
retry_check_interval 1 retry_check_interval 1
check_period 24x7 check_period 24x7
notification_interval 360 notification_interval 10
notification_period 24x7 notification_period 24x7
notification_options w,u,c,r notification_options w,u,c,r
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager contact_groups fedora-sysadmin-ircbot
register 0 register 0
} }
@ -19,10 +19,10 @@ define service {
normal_check_interval 10 normal_check_interval 10
retry_check_interval 1 retry_check_interval 1
check_period 24x7 check_period 24x7
notification_interval 360 notification_interval 10
notification_period 24x7 notification_period 24x7
notification_options w,u,c,r notification_options w,u,c,r
contact_groups fedora-sysadmin-email contact_groups fedora-sysadmin-ircbot
register 0 register 0
} }
@ -33,10 +33,10 @@ define service {
normal_check_interval 30 normal_check_interval 30
retry_check_interval 1 retry_check_interval 1
check_period 24x7 check_period 24x7
notification_interval 360 notification_interval 10
notification_period 24x7 notification_period 24x7
notification_options w,u,c,r notification_options w,u,c,r
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager contact_groups fedora-sysadmin-ircbot
register 0 register 0
} }
@ -47,10 +47,10 @@ define service {
normal_check_interval 480 normal_check_interval 480
retry_check_interval 5 retry_check_interval 5
check_period 24x7 check_period 24x7
notification_interval 500 notification_interval 10
notification_period 24x7 notification_period 24x7
notification_options w,u,c,r notification_options w,u,c,r
contact_groups fedora-sysadmin-email contact_groups fedora-sysadmin-ircbot
register 0 register 0
} }
@ -61,10 +61,10 @@ define service {
normal_check_interval 5 normal_check_interval 5
retry_check_interval 1 retry_check_interval 1
check_period 24x7 check_period 24x7
notification_interval 360 notification_interval 10
notification_period 24x7 notification_period 24x7
notification_options w,u,c,r notification_options w,u,c,r
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager contact_groups fedora-sysadmin-ircbot
register 0 register 0
} }