abulimov / icinga_slack_webhook

Send an Icinga Alert to Slack.com via Webhook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icinga-slack-webhook

A script to send notifications to Slack.com from Nagios or Icinga via the generic webhook integration

https://travis-ci.org/alphagov/icinga_slack_webhook.png?branch=master

The homepage is on Github

Installation

$ pip install icinga-slack-webhook

Usage

usage: icinga_slack_webhook_notify [-h] -c CHANNEL -m MESSAGE -s SUBDOMAIN -t TOKEN
                                   [-A ACTIONURL] [-H HOST] [-L LEVEL]
                                   [-M HEADERMESSAGE] [-N NOTESURL] [-S STATUSCGIURL]
                                   [-U USERNAME]

Send an Icinga Alert to Slack.com via a generic webhook integration

optional arguments:
  -h, --help           show this help message and exit
  -c CHANNEL           The channel to send the message to
  -m MESSAGE           The text of the message to send
  -s SUBDOMAIN         Slack.com subdomain
  -t TOKEN             The access token for your integration
  -A ACTIONURL         An optional action_url for this alert {default: None}
  -H HOST              An optional host the message relates to {default: UNKNOWN}
  -L LEVEL             An optional alert level {default: UNKNOWN}
  -M HEADERMESSAGE     A header message sent before the formatted alert
                       {default: I have received the following alert:}
  -N NOTESURL          An optional notes_url for this alert {default: None}
  -S STATUSCGIURL      The URL of status.cgi for your Nagios/Icinga instance
                       {default: https://nagios.example.com/cgi-bin/icinga/status.cgi}
  -U USERNAME          Username to send the message from {default: Icinga}
  -V                   Display version information

About

Send an Icinga Alert to Slack.com via Webhook

License:MIT License


Languages

Language:Python 100.0%