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

[fix] ondemand calls

This commit is contained in:
Ramil Valitov 2020-07-07 06:29:49 +03:00
parent 974926ed63
commit c71bc94824
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -308,18 +308,11 @@ testZabbixDiscoverNumberOfOndemandPoolsHot() {
POOL_SOCKET="/run/php/php${PHP_VERSION}-fpm-${POOL_NAME}.sock"
PHP_STATUS=$(
SCRIPT_NAME=$POOL_SOCKET \
SCRIPT_FILENAME=$POOL_SOCKET \
SCRIPT_NAME=$POOL_URL \
SCRIPT_FILENAME=$POOL_URL \
QUERY_STRING=json \
REQUEST_METHOD=GET \
sudo cgi-fcgi -bind -connect "$POOL_URL" 2>/dev/null
)
PHP_STATUS=$(
SCRIPT_NAME=$POOL_SOCKET \
SCRIPT_FILENAME=$POOL_SOCKET \
QUERY_STRING=json \
REQUEST_METHOD=GET \
sudo cgi-fcgi -bind -connect "$POOL_URL" 2>/dev/null
sudo cgi-fcgi -bind -connect "$POOL_SOCKET" 2>/dev/null
)
assertNotNull "Failed to connect to $POOL_SOCKET" "$PHP_STATUS"
done