From 937e01d15f841c9f8f7fe4f7d1b2d9dc0d200c4c Mon Sep 17 00:00:00 2001 From: meaz Date: Fri, 4 Aug 2023 08:00:26 +0200 Subject: [PATCH] add new parameters and remove old ones --- .../userparameter_container.conf.j2 | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/templates/zabbix_agent.d/userparameter_container.conf.j2 b/templates/zabbix_agent.d/userparameter_container.conf.j2 index a452aab..a287db7 100644 --- a/templates/zabbix_agent.d/userparameter_container.conf.j2 +++ b/templates/zabbix_agent.d/userparameter_container.conf.j2 @@ -55,20 +55,35 @@ UserParameter=dovecot.processes,ps -A |grep imap |wc -l # Lufi UserParameter=lufi[*],cat /tmp/lufi_stats | grep $1 | cut -d' ' -f2- {% endif %} + {% if item.name == 'privatebin' %} # PrivateBin UserParameter=privatebin[*],cat /tmp/bin_stats | grep $1 | cut -d' ' -f2- {% endif %} -{% if item.name == 'framadate' %} -# Framadate -UserParameter=framadate[*],cat /tmp/framadate_stats | grep $1 | cut -d' ' -f2- -{% endif %} + {% if item.name == 'etherpad' %} # Etherpad UserParameter=etherpad[*],cat /tmp/pad_stats | grep $1 | cut -d' ' -f2- {% endif %} -{% if item.name == 'ethercalc' %} -# Ethercalc -UserParameter=ethercalc[*],cat /tmp/ethercalc_stats | grep $1 | cut -d' ' -f2- + +{% if item.name == 'forgejo' %} +# Forgejo +UserParameter=forgejo[*],cat /tmp/git_stats | grep $1 | cut -d' ' -f2- {% endif %} + +{% if item.name == 'prosody' %} +# Prosody +UserParameter=prosody[*],cat /tmp/prosody_stats | grep $1 | cut -d' ' -f2- +{% endif %} + +{% if item.name == 'jitsi' %} +# Jitsi +UserParameter=jitsi[*],cat /tmp/jitsi_stats | grep $1 | cut -d' ' -f2- +{% endif %} + +{% if item.name == 'mumble' %} +# Mumble +UserParameter=prmumbleosody[*],cat /tmp/mumble_stats | grep $1 | cut -d' ' -f2- +{% endif %} + {% endfor %}