-
Notifications
You must be signed in to change notification settings - Fork 5
/
zbx_minecraft_template.xml
96 lines (96 loc) · 3.64 KB
/
zbx_minecraft_template.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
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2022-05-14T12:45:33Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Minecraft Stats Active</template>
<name>Minecraft Stats Active</name>
<description>Minecraft server status</description>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>Minecraft</name>
</application>
</applications>
<items>
<item>
<name>Server Latency</name>
<key>minecraft.server.latency[{$MINECRAFT.SERVER.IP},{$MINECRAFT.SERVER.PORT}]</key>
<delay>120</delay>
<value_type>FLOAT</value_type>
<units>s</units>
<applications>
<application>
<name>Minecraft</name>
</application>
</applications>
<triggers>
<trigger>
<expression>last(/Minecraft Stats Active/minecraft.server.latency[{$MINECRAFT.SERVER.IP},{$MINECRAFT.SERVER.PORT}])=0</expression>
<name>Minecraft Server down</name>
<priority>HIGH</priority>
</trigger>
</triggers>
</item>
<item>
<name>Server connected users</name>
<key>minecraft.server.users[{$MINECRAFT.SERVER.IP},{$MINECRAFT.SERVER.PORT}]</key>
<delay>120</delay>
<applications>
<application>
<name>Minecraft</name>
</application>
</applications>
</item>
</items>
<macros>
<macro>
<macro>{$MINECRAFT.SERVER.IP}</macro>
<value>127.0.0.1</value>
<description>Ip or dns name for checks. If you have to change this, add this as a macro to your host.</description>
</macro>
<macro>
<macro>{$MINECRAFT.SERVER.PORT}</macro>
<value>25565</value>
<description>The port used for checks. If you have to change this, add this as a macro to your host.</description>
</macro>
</macros>
</template>
</templates>
<graphs>
<graph>
<name>Connected Users</name>
<graph_items>
<graph_item>
<color>1A7C11</color>
<item>
<host>Minecraft Stats Active</host>
<key>minecraft.server.users[{$MINECRAFT.SERVER.IP},{$MINECRAFT.SERVER.PORT}]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>Server Latency</name>
<graph_items>
<graph_item>
<color>CCCCFF</color>
<item>
<host>Minecraft Stats Active</host>
<key>minecraft.server.latency[{$MINECRAFT.SERVER.IP},{$MINECRAFT.SERVER.PORT}]</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export>