diff --git a/templates/python.d.conf b/templates/python.d.conf index 3f5c400c6a1e3dbba03566be79fc2b570c424a1f..6b360f5e8cb8036ae440b8662c0187b7da233085 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