3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[fix] recache of ondemand pools

This commit is contained in:
Ramil Valitov 2020-07-07 01:18:14 +03:00
parent e72e760724
commit 94d2898cb5
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -234,7 +234,7 @@ testZabbixDiscoverNumberOfOndemandPoolsCold() {
testZabbixDiscoverNumberOfOndemandPoolsHot() { testZabbixDiscoverNumberOfOndemandPoolsHot() {
# We must start all the pools # We must start all the pools
POOL_URL="/" POOL_URL="/php-fpm-status"
PHP_COUNT=$(getNumberOfPHPVersions) PHP_COUNT=$(getNumberOfPHPVersions)
PHP_LIST=$(find /etc/php/ -name 'www.conf' -type f) PHP_LIST=$(find /etc/php/ -name 'www.conf' -type f)
@ -251,7 +251,7 @@ testZabbixDiscoverNumberOfOndemandPoolsHot() {
SCRIPT_FILENAME=$POOL_SOCKET \ SCRIPT_FILENAME=$POOL_SOCKET \
QUERY_STRING=json \ QUERY_STRING=json \
REQUEST_METHOD=GET \ REQUEST_METHOD=GET \
cgi-fcgi -bind -connect "$POOL_URL" 2>/dev/null sudo cgi-fcgi -bind -connect "$POOL_URL" 2>/dev/null
done done
fi fi
done <<<"$PHP_LIST" done <<<"$PHP_LIST"