mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-22 15:53:35 +01:00
Added PHP status and ping pages processing
This commit is contained in:
parent
da2f2f073a
commit
9acf660f21
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -5,6 +5,13 @@
|
|||||||
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
||||||
AddType application/x-httpd-php-source .phps
|
AddType application/x-httpd-php-source .phps
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -30,6 +30,13 @@ Listen 8443
|
|||||||
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
||||||
Header always set Strict-Transport-Security "max-age=63072000"
|
Header always set Strict-Transport-Security "max-age=63072000"
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -5,6 +5,13 @@
|
|||||||
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
||||||
AddType application/x-httpd-php-source .phps
|
AddType application/x-httpd-php-source .phps
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -30,6 +30,13 @@ Listen 8443
|
|||||||
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
||||||
Header always set Strict-Transport-Security "max-age=63072000"
|
Header always set Strict-Transport-Security "max-age=63072000"
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -5,6 +5,13 @@
|
|||||||
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
||||||
AddType application/x-httpd-php-source .phps
|
AddType application/x-httpd-php-source .phps
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -30,6 +30,13 @@ Listen 8443
|
|||||||
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
||||||
Header always set Strict-Transport-Security "max-age=63072000"
|
Header always set Strict-Transport-Security "max-age=63072000"
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -5,6 +5,13 @@
|
|||||||
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
|
||||||
AddType application/x-httpd-php-source .phps
|
AddType application/x-httpd-php-source .phps
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -30,6 +30,13 @@ Listen 8443
|
|||||||
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
||||||
Header always set Strict-Transport-Security "max-age=63072000"
|
Header always set Strict-Transport-Security "max-age=63072000"
|
||||||
|
|
||||||
|
<LocationMatch "/(ping|status)">
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
|
||||||
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
<Directory "/usr/share/zabbix">
|
<Directory "/usr/share/zabbix">
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -26,3 +26,7 @@ php_value[upload_max_filesize] = ${ZBX_UPLOADMAXFILESIZE}
|
|||||||
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
php_value[max_input_time] = ${ZBX_MAXINPUTTIME}
|
||||||
php_value[max_input_vars] = 10000
|
php_value[max_input_vars] = 10000
|
||||||
php_value[date.timezone] = ${PHP_TZ}
|
php_value[date.timezone] = ${PHP_TZ}
|
||||||
|
|
||||||
|
; PHP-FPM monitoring
|
||||||
|
pm.status_path = /status
|
||||||
|
ping.path = /ping
|
||||||
|
@ -46,6 +46,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,15 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/(status|ping)$ {
|
||||||
|
access_log off;
|
||||||
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
|
|
||||||
|
fastcgi_param SCRIPT_FILENAME $webroot$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,7 @@ services:
|
|||||||
- mysql-server
|
- mysql-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -325,7 +325,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-mysql
|
- zabbix-build-mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -254,7 +254,7 @@ services:
|
|||||||
- postgres-server
|
- postgres-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -333,7 +333,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-pgsql
|
- zabbix-build-pgsql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -205,7 +205,7 @@ services:
|
|||||||
- mysql-server
|
- mysql-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -259,7 +259,7 @@ services:
|
|||||||
- mysql-server
|
- mysql-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -264,7 +264,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-mysql
|
- zabbix-build-mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -325,7 +325,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-mysql
|
- zabbix-build-mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -200,7 +200,7 @@ services:
|
|||||||
- postgres-server
|
- postgres-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -254,7 +254,7 @@ services:
|
|||||||
- postgres-server
|
- postgres-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -272,7 +272,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-pgsql
|
- zabbix-build-pgsql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -333,7 +333,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-pgsql
|
- zabbix-build-pgsql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -205,7 +205,7 @@ services:
|
|||||||
- mysql-server
|
- mysql-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -259,7 +259,7 @@ services:
|
|||||||
- mysql-server
|
- mysql-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -264,7 +264,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-mysql
|
- zabbix-build-mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -325,7 +325,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-mysql
|
- zabbix-build-mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -200,7 +200,7 @@ services:
|
|||||||
- postgres-server
|
- postgres-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -254,7 +254,7 @@ services:
|
|||||||
- postgres-server
|
- postgres-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -272,7 +272,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-pgsql
|
- zabbix-build-pgsql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -333,7 +333,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-pgsql
|
- zabbix-build-pgsql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -252,7 +252,7 @@ services:
|
|||||||
- mysql-server
|
- mysql-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -320,7 +320,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-mysql
|
- zabbix-build-mysql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -249,7 +249,7 @@ services:
|
|||||||
- postgres-server
|
- postgres-server
|
||||||
- zabbix-server
|
- zabbix-server
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
@ -328,7 +328,7 @@ services:
|
|||||||
- zabbix-server
|
- zabbix-server
|
||||||
- zabbix-build-pgsql
|
- zabbix-build-pgsql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
Loading…
Reference in New Issue
Block a user