From 56d9460a8dfd5b22379b794f5283ac29e7a905bb Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 8 May 2014 12:53:45 +0200 Subject: [PATCH] Bug fixes --- templates/config.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/config.cfg b/templates/config.cfg index d74dac7..e2632d2 100644 --- a/templates/config.cfg +++ b/templates/config.cfg @@ -9,7 +9,7 @@ agent_key: {{sd_agent_key}} plugin_directory: /usr/bin/sd-agent/plugins logging_level: {{sd_logging_level}} -{% if inventory_hostname in groups[sd_groups.apache] %} +{% if sd_groups.apache != 'none' and inventory_hostname in groups[sd_groups.apache] %} # Apache # See https://support.serverdensity.com/hc/en-us/articles/201253343-Apache-monitoring-Linux-Mac-and-FreeBSD @@ -18,7 +18,7 @@ apache_status_user: apache_status_pass: {% endif %} -{% if inventory_hostname in groups[sd_groups.mysql] %} +{% if sd_groups.mysql != 'none' and inventory_hostname in groups[sd_groups.mysql] %} # MySQL # See https://support.serverdensity.com/hc/en-us/articles/201013827-MySQL-monitoring-Linux-Mac-and-FreeBSD @@ -27,7 +27,7 @@ mysql_user: root mysql_pass: root {% endif %} -{% if inventory_hostname in groups[sd_groups.proxy] %} +{% if sd_groups.proxy != 'none' and inventory_hostname in groups[sd_groups.proxy] %} haproxy_svname: {{inventory_hostname}} haproxy_url: http://127.0.0.1:7000/haproxy_stats {% endif %} -- GitLab