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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/config_generator.py b/plugins/config_generator.py
index 2bfffdf..6ba1631 100644
--- a/plugins/config_generator.py
+++ b/plugins/config_generator.py
@@ -171,7 +171,7 @@ class GlusterNagiosConfManager:
clusterServices.append(self.createClusterUtilizationService(
cluster['name']))
clusterServices.append(self.createClusterAutoConfigService(
- cluster['name'], cluster['hosts'][-1]['hostip']))
+ cluster['name'], cluster['hosts'][0]['hostip']))
clusterHostConfig = self.createHost(
cluster['name'], cluster['name'], "gluster-cluster",
cluster['name'], None, None, clusterServices)