From 10c414706c2c77225c014673f03b8e3166b82ff2 Mon Sep 17 00:00:00 2001 From: ndarshan Date: Thu, 10 Apr 2014 11:15:53 +0530 Subject: Server-addons: Server-side plugin for volume status. Modified the existing volume utilization server plugin to include status information as well. Refactored the plugin with an argument -o|--option to get the specific volume status. Change-Id: I2b6f8612e32390fb20917098a255de1ee6b3a170 Signed-off-by: ndarshan Signed-off-by: Sahina Bose --- plugins/config_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/config_generator.py') diff --git a/plugins/config_generator.py b/plugins/config_generator.py index a6757df..9941028 100644 --- a/plugins/config_generator.py +++ b/plugins/config_generator.py @@ -73,11 +73,11 @@ class GlusterNagiosConfManager: def __createVolumeStatusService(self, volume, clusterName): volumeService = {} volumeService['host_name'] = clusterName - volumeService['use'] = 'gluster-service-with-graph' + volumeService['use'] = 'gluster-service-withoout-graph' serviceDesc = 'Volume Status - %s' % (volume['name']) volumeService['service_description'] = serviceDesc volumeService['_VOL_NAME'] = volume['name'] - checkCommand = 'check_vol_utilization!%s!%s!70!90' % \ + checkCommand = 'check_vol_status!%s!%s' % \ (clusterName, volume['name']) volumeService['check_command'] = checkCommand volumeService['notes'] = "Volume type : %s" % (volume['typeStr']) -- cgit