From 4e1d15a964e5745a6ecea57082e4ce762fe96e98 Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Fri, 11 Apr 2014 12:08:22 +0530 Subject: plugins: Added quota NRPE to volume status Added a way to query for quota status to the check_vol_server plugin This will poll for quota status only if the service status for quota returns non-OK status Change-Id: I6260042ef54308a1f4f7b6d482a2b58a4682d36c Signed-off-by: Sahina Bose --- config/gluster-commands.cfg | 5 +++++ config/glustercluster.cfg.sample | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'config') diff --git a/config/gluster-commands.cfg b/config/gluster-commands.cfg index ec72417..c2fe324 100644 --- a/config/gluster-commands.cfg +++ b/config/gluster-commands.cfg @@ -75,3 +75,8 @@ define command { command_name check_vol_status command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o status } + +define command { + command_name check_vol_quota_status + command_line $USER1$/gluster/check_vol_server.py $ARG1$ $ARG2$ -o quota +} diff --git a/config/glustercluster.cfg.sample b/config/glustercluster.cfg.sample index 3afb95a..c7de065 100644 --- a/config/glustercluster.cfg.sample +++ b/config/glustercluster.cfg.sample @@ -107,6 +107,22 @@ define service{ check_command check_vol_status!test-cluster!data-vol } +################################################################################ +# This defines a Volume Quota status service +# Edit this sample +# host_name = the cluster host previously defined for cluster +# service_description = Volume-status - +# check_command = check_vol_status!! +# _VOL_NAME = Volume name +################################################################################ +define service{ + use gluster-service-without-graph + host_name test-cluster + service_description Volume Status Quota - data-vol + _VOL_NAME data-vol ; MUST DECLARE the custom var _VOL_NAME + check_command check_vol_quota_status!test-cluster!data-vol +} + ################################################################################ # This defines a Cluster utilization service # Edit this sample -- cgit