Fix nagios-external to behave too
This commit is contained in:
parent
55bc28fdd8
commit
762efa4867
7 changed files with 52 additions and 15 deletions
|
@ -0,0 +1,5 @@
|
|||
define contactgroup{
|
||||
contactgroup_name fedora-sysadmin-ircbot
|
||||
alias Fedora Sysadmin irc Contacts
|
||||
members ircbot
|
||||
}
|
|
@ -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
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
22
roles/nagios_server/files/nagios-external/escalations.cfg
Normal file
22
roles/nagios_server/files/nagios-external/escalations.cfg
Normal 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
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue