summaryrefslogtreecommitdiffstats
path: root/plugins/config_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/config_generator.py')
-rw-r--r--plugins/config_generator.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/config_generator.py b/plugins/config_generator.py
index 64b093a..746cefa 100644
--- a/plugins/config_generator.py
+++ b/plugins/config_generator.py
@@ -121,6 +121,18 @@ class GlusterNagiosConfManager:
volumeService['check_command'] = checkCommand
return volumeService
+ def __createVolumeHealInfoService(self, volume, clusterName):
+ volumeService = {}
+ volumeService['host_name'] = clusterName
+ volumeService['use'] = 'gluster-heal-service-with-graph'
+ serviceDesc = 'Volume Heal info - %s' % (volume['name'])
+ volumeService['service_description'] = serviceDesc
+ volumeService[VOL_NAME] = volume['name']
+ checkCommand = 'check_vol_heal_info!%s!%s' % \
+ (clusterName, volume['name'])
+ volumeService['check_command'] = checkCommand
+ return volumeService
+
def __createVolumeGeoRepStatusService(self, volume, clusterName):
volumeService = {}
volumeService['host_name'] = clusterName
@@ -174,6 +186,9 @@ class GlusterNagiosConfManager:
volumeService = self.__createVolumeHealStatusService(
volume, clusterName)
volumeServices.append(volumeService)
+ volumeService = self.__createVolumeHealInfoService(
+ volume, clusterName)
+ volumeServices.append(volumeService)
if volume.get('geo-rep') == "on":
volumeService = self.__createVolumeGeoRepStatusService(
volume, clusterName)