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:
parent
e72e760724
commit
94d2898cb5
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user