-
Notifications
You must be signed in to change notification settings - Fork 19
/
README
31 lines (21 loc) · 925 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# HOW TO #
* Create a new channel in Rocket.Chat and copy the token
* Copy the script to the alertscript path
* Create a new media type with the name of the script
$1 = {ALERT.SENDTO}
$2 = {ALERT.SUBJECT}
$3 = {ALERT.MESSAGE}
* Add media to the correct user
type : rocketchat script
send to: the token of the rocketchat channel
* Create the action in Zabbix
** Operation:
Default subject: {TRIGGER.STATUS}
Default message: {EVENT.NAME} ({TRIGGER.SEVERITY}) on {HOST.HOST}
** Recovery Operation
Default subject: {TRIGGER.STATUS}
Default message: {EVENT.NAME} ({TRIGGER.SEVERITY}) on {HOST.HOST}
** Update Operations
Default subject: UPDATE
Default message: {USER.FULLNAME} acknowledged problem at {ACK.DATE} {ACK.TIME} with the following message: {ACK.MESSAGE}. {EVENT.NAME} ({TRIGGER.SEVERITY}) on {HOST.HOST}
!! (make sure it fits on 1 line no enters, rocketchat will not like it and refuse to print anything) !!