Skip to content

Instantly share code, notes, and snippets.

@matt448
Created December 31, 2013 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt448/8200896 to your computer and use it in GitHub Desktop.
Save matt448/8200896 to your computer and use it in GitHub Desktop.
Configuration to be added to existing commands.cfg. This tells how to use the slack_nagios.sh script.
###############################
# Slack notifications
###############################
# 'notify-service-by-slack' command definition
define command {
command_name notify-service-by-slack
command_line /usr/local/bin/slack_nagios.sh > /tmp/slack.log 2>&1
}
# 'notify-host-by-slack' command definition
define command {
command_name notify-host-by-slack
command_line /usr/local/bin/slack_nagios.sh > /tmp/slack.log 2>&1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment