forked from who0ps/build-a-bot-with-zero-coding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia_viber-legacy.xml
83 lines (83 loc) · 3.86 KB
/
media_viber-legacy.xml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2021-07-08T10:55:56Z</date>
<media_types>
<media_type>
<name>Viber-alerts</name>
<type>SCRIPT</type>
<script_name>Viber.sh</script_name>
<parameters>
<parameter>your-auth-token</parameter>
<parameter>{ALERT.SENDTO}</parameter>
<parameter>{ALERT.SUBJECT}</parameter>
<parameter>{ALERT.MESSAGE}</parameter>
</parameters>
<attempts>10</attempts>
<attempt_interval>15s</attempt_interval>
<message_templates>
<message_template>
<event_source>TRIGGERS</event_source>
<operation_mode>PROBLEM</operation_mode>
<subject>`{HOST.NAME}` {EVENT.NAME}</subject>
<message>❌Problem started at {EVENT.TIME} on {EVENT.DATE}
Operational data: {EVENT.OPDATA}</message>
</message_template>
<message_template>
<event_source>TRIGGERS</event_source>
<operation_mode>RECOVERY</operation_mode>
<subject>`{HOST.NAME}` {EVENT.RECOVERY.NAME} - resolved in {EVENT.DURATION}</subject>
<message>✅Problem started at {EVENT.TIME} on {EVENT.DATE} and resolved at {EVENT.RECOVERY.TIME} on {EVENT.RECOVERY.DATE}
Operational data: {EVENT.OPDATA}</message>
</message_template>
<message_template>
<event_source>TRIGGERS</event_source>
<operation_mode>UPDATE</operation_mode>
<subject>`{HOST.NAME}` {EVENT.NAME}</subject>
<message>☑️{USER.FULLNAME} {EVENT.UPDATE.ACTION} problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME}.
_{EVENT.UPDATE.MESSAGE}_
Current problem status is {EVENT.STATUS}, acknowledged: {EVENT.ACK.STATUS}.</message>
</message_template>
<message_template>
<event_source>DISCOVERY</event_source>
<operation_mode>PROBLEM</operation_mode>
<subject>Discovery: {DISCOVERY.DEVICE.STATUS} {DISCOVERY.DEVICE.IPADDRESS}</subject>
<message>Discovery rule: {DISCOVERY.RULE.NAME}
Device IP: {DISCOVERY.DEVICE.IPADDRESS}
Device DNS: {DISCOVERY.DEVICE.DNS}
Device status: {DISCOVERY.DEVICE.STATUS}
Device uptime: {DISCOVERY.DEVICE.UPTIME}
Device service name: {DISCOVERY.SERVICE.NAME}
Device service port: {DISCOVERY.SERVICE.PORT}
Device service status: {DISCOVERY.SERVICE.STATUS}
Device service uptime: {DISCOVERY.SERVICE.UPTIME}</message>
</message_template>
<message_template>
<event_source>AUTOREGISTRATION</event_source>
<operation_mode>PROBLEM</operation_mode>
<subject>Autoregistration: {HOST.HOST}</subject>
<message>Host name: {HOST.HOST}
Host IP: {HOST.IP}
Agent port: {HOST.PORT}</message>
</message_template>
<message_template>
<event_source>INTERNAL</event_source>
<operation_mode>PROBLEM</operation_mode>
<subject>State: {ITEM.STATE}</subject>
<message>Host: {HOST.NAME}
Item: {ITEM.NAME}</message>
</message_template>
<message_template>
<event_source>INTERNAL</event_source>
<operation_mode>RECOVERY</operation_mode>
<subject>State: {ITEM.STATE}</subject>
<message>Host: {HOST.NAME}
Item: {ITEM.NAME}</message>
</message_template>
</message_templates>
</media_type>
</media_types>
</zabbix_export>