blob: 8840c876262ec93cfc68b00a6bedf7052b729d74 [file] [log] [blame]
Tony Mack81b1e7f2016-05-10 16:27:55 +00001define contact {
2 contact_name slack
3 alias Slack
4 service_notification_period 24x7
5 host_notification_period 24x7
6 service_notification_options w,u,c,r
7 host_notification_options d,r
8 service_notification_commands notify-service-by-slack
9 host_notification_commands notify-host-by-slack
10}
11
12define command {
13 command_name notify-service-by-slack
14 command_line /usr/local/bin/slack_nagios.sh > /tmp/slack.log 2>&1
15}
16
17define command {
18 command_name notify-host-by-slack
19 command_line /usr/local/bin/slack_nagios.sh > /tmp/slack.log 2>&1
20}
21