Skip to content

Files

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Gluster Storage

Overview

This project was created to monitor Gluster Storage with Zabbix. In this repository there are two files. One python script that calls gstatus, discovering gluster volumes and print data we want, according to the arguments given. You have to install gstatus gstatus

You should save the script in any directory you want, in order to do it executable from zabbix user using sudo. You have to create a file in /etc/zabbix/zabbix_server.conf.d/ and add UserParameters:

  • You should save the script in any directory you want, do it executable from zabbix user using sudo.
  • You have to create a file in /etc/zabbix/zabbix_server.conf.d/ and add UserParameters: ... UserParameter=gluster_volume_info[],sudo /path/gstatus_discovery.py $1 $2 UserParameter=gluster_storage_info[],sudo /path/gstatus_discovery.py $1 UserParameter=gluster_volume_info,sudo /path/gstatus_discovery.py
  • The last one shoud be import zabbix_template.xml in zabbix

You can check my github repository

Author

MrCirca

Macros used

There are no macros links in this template.

Template links

There are no template links in this template.

Discovery rules

Name Description Type Key and additional info
Gluster Volume Names Discovery

-

Zabbix agent gluster_volume_name.discovery

Update: 30s

Items collected

Name Description Type Key and additional info
Gluster Storage Self Heal Enabled

-

Zabbix agent gluster_storage_info["sh_enabled"]

Update: 2m

Gluster Storage Active Nodes

-

Zabbix agent gluster_storage_info["nodes_active"]

Update: 2m

Gluster Storage status

-

Zabbix agent gluster_storage_info["status"]

Update: 2m

Gluster Storage Self Heal Active

-

Zabbix agent gluster_storage_info["sh_active"]

Update: 2m

Gluster Storage Used Size

-

Zabbix agent gluster_storage_info["used_capacity"]

Update: 2m

Gluster Storage Nodes

-

Zabbix agent gluster_storage_info["node_count"]

Update: 2m

Gluster Storage Total Size

-

Zabbix agent gluster_storage_info["usable_capacity"]

Update: 2m

Gluster Storage raw capacity

-

Zabbix agent gluster_storage_info["raw_capacity"]

Update: 2m

Gluster Storage Snapshots

-

Zabbix agent gluster_storage_info["snapshot_count"]

Update: 2m

Gluster Storage Volume Number

-

Zabbix agent gluster_storage_info["volume_count"]

Update: 2m

Gluster Storage % Free Space

-

Calculated gluster_storage_free_space

Update: 2m

Gluster Volume % Free Space {#VOLUME_NAME}

-

Calculated gluster_volume_free_space[{#VOLUME_NAME}]

Update: 30s

LLD

Gluster Volume snapshot_count on {#VOLUME_NAME}

-

Zabbix agent gluster_volume_info["snapshot_count",{#VOLUME_NAME}]

Update: 30s

LLD

Gluster Volume state on {#VOLUME_NAME}

-

Zabbix agent gluster_volume_info["state",{#VOLUME_NAME}]

Update: 30s

LLD

Gluster Volume Total Size on {#VOLUME_NAME}

-

Zabbix agent gluster_volume_info["usable_capacity",{#VOLUME_NAME}]

Update: 30s

LLD

Gluster Volume Used Size on {#VOLUME_NAME}

-

Zabbix agent gluster_volume_info["used_capacity",{#VOLUME_NAME}]

Update: 30s

LLD

Triggers

Name Description Expression Priority
Gluster Volume Free Space is less than 20%

-

Expression: last(/Gluster Storage/gluster_volume_free_space[{#VOLUME_NAME}],#1:now-5m)<20

Recovery expression:

warning
Gluster Volume state in {#VOLUME_NAME} is down

-

Expression: find(/Gluster Storage/gluster_volume_info["state",{#VOLUME_NAME}],,"like","up")=0

Recovery expression:

warning
Gluster Volume Free Space is less than 20% (LLD)

-

Expression: last(/Gluster Storage/gluster_volume_free_space[{#VOLUME_NAME}],#1:now-5m)<20

Recovery expression:

warning
Gluster Volume state in {#VOLUME_NAME} is down (LLD)

-

Expression: find(/Gluster Storage/gluster_volume_info["state",{#VOLUME_NAME}],,"like","up")=0

Recovery expression:

warning