icinga-slack-webhook:从icinga到slack的通知程序

icinga-slack-webhook的Python项目详细描述


通过通用webhook集成从nagios或icinga向slack.com发送通知的脚本

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

homepage is on Github

安装

$ pip install icinga-slack-webhook

用法

usage: icinga_slack_webhook_notify [-h] -c CHANNEL -m MESSAGE [-u WEB_HOOK_URL | -p]
                                   [-A SERVICE_ACTION_URL] [-H HOST] [-d HOST_DISPLAY_NAME]
                                   [--host-state HOST_STATE]
                                   [-L {OK,WARNING,CRITICAL,UNKNOWN}] [-N SERVICE_NOTES_URL]
                                   [-S STATUS_CGI_URL] [-E EXTINFO_CGI_URL] [-U USERNAME]
                                   [-V]

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

optional arguments:
  -h, --help            show this help message and exit
  -c CHANNEL, --channel CHANNEL
                        The channel to send the message to
  -m MESSAGE, --message MESSAGE
                        The text of the message to send
  -u WEB_HOOK_URL, --web-hook-url WEB_HOOK_URL
                        The webhook URL for your integration
  -p, --print-payload   Rather than sending the payload to Slack, print it to STDOUT
  -A SERVICE_ACTION_URL, --service-action-url SERVICE_ACTION_URL
                        An optional action_url for this alert {default: None}
  -H HOST, --host HOST  An optional host the message relates to
  -d HOST_DISPLAY_NAME, --host-display-name HOST_DISPLAY_NAME
                        An optional display name for the host the message relates to
  --host-state HOST_STATE
                        An optional state the host is in, use this for host alerts
  -L {OK,WARNING,CRITICAL,UNKNOWN}, --level {OK,WARNING,CRITICAL,UNKNOWN}
                        An optional alert level {default: UNKNOWN}
  -N SERVICE_NOTES_URL, --service-notes-url SERVICE_NOTES_URL
                        An optional notes_url for this alert {default: None}
  -S STATUS_CGI_URL, --status-cgi-url STATUS_CGI_URL
                        The URL of status.cgi for your Nagios/Icinga instance {default:
                        https://nagios.example.com/cgi-bin/icinga/status.cgi}
  -E EXTINFO_CGI_URL, --extinfo-cgi-url EXTINFO_CGI_URL
                        The URL of extinfo.cgi for your Nagios/Icinga instance
  -U USERNAME, --username USERNAME
                        Username to send the message from {default: Icinga}
  -V, --version         Print version information

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
安卓工作室组织。json。JSONException:类型为java。无法将lang.String转换为JSONObject   java将数据从Jenkins参数化构建传递到testng。运行时的xml   java关注使用所有者框架异步打开JDialog   Android java:broadcastReceiver上的蓝牙连接事件未触发   在java中同时处理写入和读取的文件io   javascript如何替换目标数组字符串并将其更改为用户输入字符串   如何终止或停止java小程序中的其他线程   如何通过SeleniumJava连接到putty以执行一组命令并在putty窗口中验证输出   java为什么空列表上的循环会挂起?   java当我单击run时,什么也没有发生   swing Java多监视器问题   proguard java模块版本不匹配   java在facebook sdk 4.0上获取可标记好友+   java Android Fragmens和滑动示例   java导入。VS代码中的jar库   存储在SQL表中的java下载/显示文件   java项目Euler(第14页):递归问题   java如何在springboot中跳过失败的bean以避免报告失败:771>>应用程序启动失败