diff options
author | ndarshan <dnarayan@redhat.com> | 2014-04-10 11:15:53 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-29 10:21:37 +0530 |
commit | 10c414706c2c77225c014673f03b8e3166b82ff2 (patch) | |
tree | 644efffb0f4e1bb9e5eb8930c7ab515098409205 /plugins/config_generator.py | |
parent | 3374e943a17516e1e28339dc3df55c80b0ecf5ad (diff) |
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 <dnarayan@redhat.com>
Signed-off-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins/config_generator.py')
-rw-r--r-- | plugins/config_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
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']) |