Skip to content

Commit 2b7fb3a

Browse files
committed
adding a trigger for cluster health
1 parent 1b3188a commit 2b7fb3a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

zabbix_templates/zbx_ceph_cluster_template.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,24 @@
12321232
<type>0</type>
12331233
<dependencies/>
12341234
</trigger>
1235+
<trigger>
1236+
<expression>{Template_Ceph_Cluster:ceph.health.last()}&lt;&gt;1</expression>
1237+
<recovery_mode>0</recovery_mode>
1238+
<recovery_expression/>
1239+
<name>Ceph cluster is not healthy</name>
1240+
<correlation_mode>0</correlation_mode>
1241+
<correlation_tag/>
1242+
<url/>
1243+
<status>0</status>
1244+
<priority>5</priority>
1245+
<description>This will throw an alert if status is anything other than healthy. &#13;
1246+
You can change it to do &gt;=3 if you want it to only alert on error.</description>
1247+
<description/>
1248+
<type>0</type>
1249+
<manual_close>0</manual_close>
1250+
<dependencies/>
1251+
<tags/>
1252+
</trigger>
12351253
</triggers>
12361254
<graphs>
12371255
<graph>

0 commit comments

Comments
 (0)