From 23e34a293ea41693e00cad80f8f9d2667490298c Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Fri, 3 Mar 2017 13:58:33 +0100 Subject: [PATCH] #11 Enable/disable mongo db monitoring --- templates/python.d.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/python.d.conf b/templates/python.d.conf index 3f5c400..6b360f5 100644 --- a/templates/python.d.conf +++ b/templates/python.d.conf @@ -40,6 +40,7 @@ ipfs: no isc_dhcpd: yes mdstat: yes memcached: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }} +mongodb: {{ ((groups['dbserver-mongodb'] is defined and inventory_hostname in groups['dbserver-mongodb']) or (groups['uptime'] is defined and inventory_hostname in groups['uptime']))|ternary("yes", "no") }} mysql: {{ (groups['dbserver-mysql'] is defined and inventory_hostname in groups['dbserver-mysql'])|ternary("yes", "no") }} nginx: no nginx_log: no -- GitLab