diff --git a/templates/etc/zabbix/zabbix_agent.d/userparameter_container.conf.j2 b/templates/etc/zabbix/zabbix_agent.d/userparameter_container.conf.j2 index 7f12c5a..eb1f594 100644 --- a/templates/etc/zabbix/zabbix_agent.d/userparameter_container.conf.j2 +++ b/templates/etc/zabbix/zabbix_agent.d/userparameter_container.conf.j2 @@ -130,4 +130,7 @@ UserParameter=pgsql.replication.recovery_role[*], psql -qtAX postgresql://"$3":" UserParameter=pgsql.replication.lag.sec[*], psql -qtAX postgresql://"$3":"$4"@"$1":"$2"/"$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.lag.sql" UserParameter=pgsql.replication.status[*], psql -qtAX postgresql://"$3":"$4"@"$1":"$2"/"$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.status.sql" {% endif %} +{% if item.name == 'sitecheck' %} +UserParameter=site.score[*],python3 /usr/local/bin/zabbix-scripts/sitecheck.py $1 $2 +{% endif %} {% endfor %}