First cut at making nagios alert to irc first and then only go on to email/pager.
This commit is contained in:
parent
8510f97c14
commit
2ba91a434c
6 changed files with 51 additions and 13 deletions
|
@ -0,0 +1,5 @@
|
|||
define contactgroup{
|
||||
contactgroup_name fedora-sysadmin-ircbot
|
||||
alias Fedora Sysadmin irc Contacts
|
||||
members ircbot
|
||||
}
|
10
roles/nagios_server/files/nagios/contacts/ircbot.cfg
Normal file
10
roles/nagios_server/files/nagios/contacts/ircbot.cfg
Normal 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
|
||||
}
|
|
@ -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/escalations.cfg
Normal file
22
roles/nagios_server/files/nagios/escalations.cfg
Normal file
|
@ -0,0 +1,22 @@
|
|||
define hostescalation{
|
||||
host_name *
|
||||
hostgroup_name *
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-emergency
|
||||
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
|
||||
first_notification 2
|
||||
last_notification 0
|
||||
notification_interval 60
|
||||
escalation_period 24x7
|
||||
escalation_options [w,u,c,r]
|
||||
}
|
|
@ -10,7 +10,7 @@ define host {
|
|||
notification_interval 480
|
||||
notifications_enabled 1
|
||||
notification_options d,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-emergency
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ define host {
|
|||
notification_interval 480
|
||||
notifications_enabled 1
|
||||
notification_options d,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-emergency
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
register 0
|
||||
}
|
||||
|
||||
|
@ -85,6 +85,7 @@ define host {
|
|||
notification_interval 480
|
||||
notifications_enabled 1
|
||||
notification_options d,r
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
register 0
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-emergency
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-pager
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ define service {
|
|||
notification_interval 500
|
||||
notification_period 16x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email,fedora-sysadmin-emergency
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups fedora-sysadmin-email
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups ppc-secondary-email
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ define service {
|
|||
notification_interval 360
|
||||
notification_period 24x7
|
||||
notification_options w,u,c,r
|
||||
contact_groups retrace-email
|
||||
contact_groups fedora-sysadmin-ircbot
|
||||
|
||||
register 0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue