Skip to content

Instantly share code, notes, and snippets.

@jubel-han
Last active February 15, 2017 03:27
Show Gist options
  • Save jubel-han/ffe0e50f69243513b9ec to your computer and use it in GitHub Desktop.
Save jubel-han/ffe0e50f69243513b9ec to your computer and use it in GitHub Desktop.
zabbix notify to hipchat actions
{
"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