summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/config_generator.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/config_generator.py b/plugins/config_generator.py
index 8466c83..acb7fff 100644
--- a/plugins/config_generator.py
+++ b/plugins/config_generator.py
@@ -155,18 +155,20 @@ class GlusterNagiosConfManager:
volumeService = self.__createVolumeUtilizationService(volume,
clusterName)
volumeServices.append(volumeService)
- volumeService = self.__createVolumeQuotaStatusService(volume,
- clusterName)
- volumeServices.append(volumeService)
+ if volume.get('quota') == "on":
+ volumeService = self.__createVolumeQuotaStatusService(
+ volume, clusterName)
+ volumeServices.append(volumeService)
+
if 'REPLICATE' in volume['type'].upper():
- volumeService = (self.
- __createVolumeHealStatusService(volume,
- clusterName))
+ volumeService = self.__createVolumeHealStatusService(
+ volume, clusterName)
volumeServices.append(volumeService)
- volumeService = (self.
- __createVolumeGeoRepStatusService(volume,
- clusterName))
- volumeServices.append(volumeService)
+ if volume.get('geo-rep') == "on":
+ volumeService = self.__createVolumeGeoRepStatusService(
+ volume, clusterName)
+ volumeServices.append(volumeService)
+
volumeService = self.__createVolumeStatusService(volume,
clusterName)
volumeServices.append(volumeService)