-
Notifications
You must be signed in to change notification settings - Fork 0
/
NSMultiBackup_template_zbx5x.xml
101 lines (101 loc) · 4.31 KB
/
NSMultiBackup_template_zbx5x.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
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2022-01-07T21:31:18Z</date>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Applications</name>
</group>
</groups>
<templates>
<template>
<template>Bak - Multiple Nethserver Backup</template>
<name>Bak - Multiple Nethserver Backup</name>
<description>Monitors the backups made inside NethServer with internal tooling.</description>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Applications</name>
</group>
</groups>
<applications>
<application>
<name>Backups</name>
</application>
</applications>
<discovery_rules>
<discovery_rule>
<name>Backup items</name>
<key>nethserver.backup.discovery</key>
<delay>1h</delay>
<description>Discover all the backup items configured on the system and verifies its validy on standard base.</description>
<item_prototypes>
<item_prototype>
<name>Backup "{#NSBACKUP}" validity</name>
<key>nethserver.backup[{#NSBACKUP},{$NSBAKVALIDITY}]</key>
<delay>0;h9,14</delay>
<description>Checks if the last backup is valid (is successful and was done at least {$NSBAKVALIDITY} days ago).</description>
<applications>
<application>
<name>Backups</name>
</application>
</applications>
<valuemap>
<name>Backup status</name>
</valuemap>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}=0</expression>
<name>NethServer Backup {#NSBACKUP} is not valid</name>
<priority>HIGH</priority>
<description>Notifies if the last backup is not valid (is not successful or is not done in the last {$NSBAKVALIDITY} days).</description>
<tags>
<tag>
<tag>Backup</tag>
<value>failed</value>
</tag>
<tag>
<tag>Backup.Frequency</tag>
<value>{$NSBAKVALIDITY}</value>
</tag>
<tag>
<tag>Backup.Type</tag>
<value>NethServer</value>
</tag>
</tags>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$NSBAKVALIDITY}</macro>
<value>1</value>
<description>Validity of the backup in days</description>
</macro>
</macros>
</template>
</templates>
<value_maps>
<value_map>
<name>Backup status</name>
<mappings>
<mapping>
<value>0</value>
<newvalue>Not OK</newvalue>
</mapping>
<mapping>
<value>1</value>
<newvalue>OK</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>