-
Notifications
You must be signed in to change notification settings - Fork 0
/
HW_myStrom_ECS.xml
121 lines (121 loc) · 4.38 KB
/
HW_myStrom_ECS.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.4</version>
<date>2020-05-25T19:00:02Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>HW myStrom ECS</template>
<name>HW myStrom ECS</name>
<description>Monitoring template for myStrom ECS (Energy Control Switch).
Source: https://github.com/frei-style/zabbix-mystrom-ecs-template</description>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>myStrom</name>
</application>
</applications>
<items>
<item>
<name>ECS power usage</name>
<type>DEPENDENT</type>
<key>mystrom.ecs[power]</key>
<delay>0</delay>
<value_type>FLOAT</value_type>
<units>W</units>
<applications>
<application>
<name>myStrom</name>
</application>
</applications>
<preprocessing>
<step>
<type>JSONPATH</type>
<params>$.power</params>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>5m</params>
</step>
</preprocessing>
<master_item>
<key>mystrom.ecs[report]</key>
</master_item>
</item>
<item>
<name>ECS power status</name>
<type>DEPENDENT</type>
<key>mystrom.ecs[relay]</key>
<delay>0</delay>
<description>Power status of the myStrom ECS adapter.</description>
<applications>
<application>
<name>myStrom</name>
</application>
</applications>
<valuemap>
<name>myStrom ECS Relay Status</name>
</valuemap>
<preprocessing>
<step>
<type>JSONPATH</type>
<params>$.relay</params>
</step>
<step>
<type>BOOL_TO_DECIMAL</type>
<params/>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>5m</params>
</step>
</preprocessing>
<master_item>
<key>mystrom.ecs[report]</key>
</master_item>
</item>
<item>
<name>ECS Report</name>
<type>HTTP_AGENT</type>
<key>mystrom.ecs[report]</key>
<history>0</history>
<trends>0</trends>
<value_type>CHAR</value_type>
<description>Get a JSON array like this:
{ "power": 92.009575, "relay": true }</description>
<applications>
<application>
<name>myStrom</name>
</application>
</applications>
<timeout>8s</timeout>
<url>http://{HOST.HOST}/report</url>
</item>
</items>
</template>
</templates>
<value_maps>
<value_map>
<name>myStrom ECS Relay Status</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>on</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>off</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>