]> arthur.barton.de Git - ZabbixExtensions.git/blob - templates/Template App Backup-Script.xml
Initial commit
[ZabbixExtensions.git] / templates / Template App Backup-Script.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <zabbix_export>
3     <version>3.0</version>
4     <date>2016-04-08T12:35:50Z</date>
5     <groups>
6         <group>
7             <name>Templates</name>
8         </group>
9     </groups>
10     <templates>
11         <template>
12             <template>Template App Backup-Script</template>
13             <name>Template App Backup-Script</name>
14             <description>Alex Backup-Script: https://github.com/alexbarton/backup-script</description>
15             <groups>
16                 <group>
17                     <name>Templates</name>
18                 </group>
19             </groups>
20             <applications>
21                 <application>
22                     <name>Backup</name>
23                 </application>
24             </applications>
25             <items>
26                 <item>
27                     <name>Backup error count</name>
28                     <type>0</type>
29                     <snmp_community/>
30                     <multiplier>0</multiplier>
31                     <snmp_oid/>
32                     <key>backup_script.errors</key>
33                     <delay>10800</delay>
34                     <history>90</history>
35                     <trends>365</trends>
36                     <status>0</status>
37                     <value_type>3</value_type>
38                     <allowed_hosts/>
39                     <units/>
40                     <delta>0</delta>
41                     <snmpv3_contextname/>
42                     <snmpv3_securityname/>
43                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
44                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
45                     <snmpv3_authpassphrase/>
46                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
47                     <snmpv3_privpassphrase/>
48                     <formula>1</formula>
49                     <delay_flex>0/1-7,2:30-5:30</delay_flex>
50                     <params/>
51                     <ipmi_sensor/>
52                     <data_type>0</data_type>
53                     <authtype>0</authtype>
54                     <username/>
55                     <password/>
56                     <publickey/>
57                     <privatekey/>
58                     <port/>
59                     <description>Number of backups with errors.</description>
60                     <inventory_link>0</inventory_link>
61                     <applications>
62                         <application>
63                             <name>Backup</name>
64                         </application>
65                     </applications>
66                     <valuemap/>
67                     <logtimefmt/>
68                 </item>
69                 <item>
70                     <name>Backup job running</name>
71                     <type>0</type>
72                     <snmp_community/>
73                     <multiplier>0</multiplier>
74                     <snmp_oid/>
75                     <key>backup_script.is_running</key>
76                     <delay>60</delay>
77                     <history>90</history>
78                     <trends>365</trends>
79                     <status>0</status>
80                     <value_type>3</value_type>
81                     <allowed_hosts/>
82                     <units/>
83                     <delta>0</delta>
84                     <snmpv3_contextname/>
85                     <snmpv3_securityname/>
86                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
87                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
88                     <snmpv3_authpassphrase/>
89                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
90                     <snmpv3_privpassphrase/>
91                     <formula>1</formula>
92                     <delay_flex/>
93                     <params/>
94                     <ipmi_sensor/>
95                     <data_type>3</data_type>
96                     <authtype>0</authtype>
97                     <username/>
98                     <password/>
99                     <publickey/>
100                     <privatekey/>
101                     <port/>
102                     <description>Is an backup job running at the moment?</description>
103                     <inventory_link>0</inventory_link>
104                     <applications>
105                         <application>
106                             <name>Backup</name>
107                         </application>
108                     </applications>
109                     <valuemap>
110                         <name>Boolean Yes/No</name>
111                     </valuemap>
112                     <logtimefmt/>
113                 </item>
114             </items>
115             <discovery_rules/>
116             <macros/>
117             <templates/>
118             <screens/>
119         </template>
120     </templates>
121     <triggers>
122         <trigger>
123             <expression>{Template App Backup-Script:backup_script.errors.last()}&gt;0</expression>
124             <name>Not all backups were successful on {HOST.NAME}</name>
125             <url/>
126             <status>0</status>
127             <priority>4</priority>
128             <description>There are backup jobs in &quot;error&quot; state!</description>
129             <type>0</type>
130             <dependencies/>
131         </trigger>
132     </triggers>
133     <value_maps>
134         <value_map>
135             <name>Boolean Yes/No</name>
136             <mappings>
137                 <mapping>
138                     <value>0</value>
139                     <newvalue>no</newvalue>
140                 </mapping>
141                 <mapping>
142                     <value>1</value>
143                     <newvalue>yes</newvalue>
144                 </mapping>
145             </mappings>
146         </value_map>
147     </value_maps>
148 </zabbix_export>