Last active
February 15, 2017 03:27
-
-
Save jubel-han/ffe0e50f69243513b9ec to your computer and use it in GitHub Desktop.
zabbix notify to hipchat actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"HIPCHAT": ["zabbix", "TOKEN", "api.hipchat.com"], | |
"TRIGGER": { | |
"NAME": "{TRIGGER.NAME}", | |
"STATUS": "{TRIGGER.STATUS}", | |
"SEVERITY": "{TRIGGER.SEVERITY}", | |
"URL": "{TRIGGER.URL}" | |
}, | |
"ITEM": { | |
"NAME": "{ITEM.NAME1}", | |
"HOST": "{HOST.NAME1}", | |
"KEY": "{ITEM.KEY1}", | |
"VALUE": "{ITEM.VALUE1}" | |
}, | |
"EVENTID": "{EVENT.ID}" | |
} | |
section2: in zabbix actions | |
<br> HOST: {HOST.NAME}: {HOST.CONN} [ <a href='http://zabbix.XXX.com/zabbix//events.php?triggerid={TRIGGER.ID}'>Events</a> | <a href='http://zabbix.XXX.com/zabbix//acknow.php?eventid={EVENT.ID}'>Acknowledge</a> ]</br> | |
curl -sS \ | |
-H 'Content-type: application/json' \ | |
-d "{\"color\":\"red\", \"message\": | |
\"<strong>OK: test</strong> (OK)<br />test message from command line\", \"message_format\":\"html\", \"notify\":true}" \ | |
https://api.hipchat.com/v2/room/zabbix/notification?auth_token=XXXX | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment