added sitecheck

This commit is contained in:
muppeth 2023-12-03 00:12:56 +01:00
parent 00a2a3935f
commit a1c0b1448c
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 3 additions and 0 deletions

View File

@ -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 %}