Merge pull request 'Added SiteCheck user parameters' (#8) from sitecheckfix into main

Reviewed-on: #8
This commit is contained in:
muppeth 2023-12-13 20:16:42 +00:00
commit 29a0c887a3
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 %}