Tony Mack | 91b0ef9 | 2016-05-10 16:27:55 +0000 | [diff] [blame] | 1 | define 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 | |
| 12 | define command { |
| 13 | command_name notify-service-by-slack |
| 14 | command_line /usr/local/bin/slack_nagios.sh > /tmp/slack.log 2>&1 |
| 15 | } |
| 16 | |
| 17 | define command { |
| 18 | command_name notify-host-by-slack |
| 19 | command_line /usr/local/bin/slack_nagios.sh > /tmp/slack.log 2>&1 |
| 20 | } |
| 21 | |