Additional scripts for Zabbix agent on Linux to discover and monitor several services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

138 lines
6.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2021-06-19T12:08:07Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template_App_GlusterFS</template>
<name>Template_App_GlusterFS</name>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>Gluster</name>
</application>
<application>
<name>Storage</name>
</application>
</applications>
<items>
<item>
<name>GlusterFS: memory used by gluster processes</name>
<key>proc.mem[glusterfs]</key>
<delay>5m</delay>
<trends>730d</trends>
<units>B</units>
<applications>
<application>
<name>Gluster</name>
</application>
<application>
<name>Storage</name>
</application>
</applications>
<request_method>POST</request_method>
</item>
<item>
<name>GlusterFS: number of processes</name>
<key>proc.num[glusterfs]</key>
<delay>5m</delay>
<trends>730d</trends>
<applications>
<application>
<name>Gluster</name>
</application>
<application>
<name>Storage</name>
</application>
</applications>
<request_method>POST</request_method>
<triggers>
<trigger>
<expression>{last()}&lt;1</expression>
<name>GlusterFS: No gluster process runing</name>
<priority>HIGH</priority>
</trigger>
</triggers>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>GlusterFS: peer discovery</name>
<key>gluster.discovery[peers]</key>
<delay>2h</delay>
<item_prototypes>
<item_prototype>
<name>GlusterFS peer: {#GLUSTER_PEER_UUID} ({#GLUSTER_PEER_HOST}) status</name>
<key>gluster.peer.status[{#GLUSTER_PEER_UUID}]</key>
<delay>633s</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Gluster</name>
</application>
<application>
<name>Storage</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{str(Connected)}=0</expression>
<name>GlusterFS peer {#GLUSTER_PEER_HOST} disconnected</name>
<priority>HIGH</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
<request_method>POST</request_method>
</discovery_rule>
<discovery_rule>
<name>GlusterFS: Volume discovery</name>
<key>gluster.discovery[volumes]</key>
<delay>2h</delay>
<item_prototypes>
<item_prototype>
<name>GlusterFS {#GLUSTER_VOL_NAME} status</name>
<key>gluster.volume.status[{#GLUSTER_VOL_NAME},{#GLUSTER_VOL_BRICKS}]</key>
<delay>614s</delay>
<trends>0</trends>
<value_type>CHAR</value_type>
<applications>
<application>
<name>Gluster</name>
</application>
<application>
<name>Storage</name>
</application>
</applications>
<request_method>POST</request_method>
<trigger_prototypes>
<trigger_prototype>
<expression>{str(OK)}=0</expression>
<name>GlusterFS: {#GLUSTER_VOL_NAME} failure detected</name>
<priority>HIGH</priority>
</trigger_prototype>
<trigger_prototype>
<expression>{nodata(2460)}=1</expression>
<name>GlusterFS: {#GLUSTER_VOL_NAME} not sending health info</name>
<priority>AVERAGE</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
<request_method>POST</request_method>
</discovery_rule>
</discovery_rules>
</template>
</templates>
</zabbix_export>