zabbix checks template update

This commit is contained in:
muppeth 2023-05-12 00:44:36 +02:00
parent 1487af80da
commit 74e2da9b8a
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 16 additions and 3 deletions

View File

@ -1,10 +1,23 @@
server {
listen 10061;
listen {{ item.port }};
location /nginx_status {
stub_status on;
location /basic_status {
stub_status;
access_log off;
allow 127.0.0.1;
deny all;
}
{% if item.php_check defined and item.php_check == 'true' %}
location ~ ^/(status|ping)$ {
access_log off;
allow 127.0.0.1;
deny all;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_pass unix:{{ pool_listen }};
}
{% endif %}
}