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:
parent
974926ed63
commit
c71bc94824
13
tests/all.sh
13
tests/all.sh
@ -308,18 +308,11 @@ testZabbixDiscoverNumberOfOndemandPoolsHot() {
|
|||||||
POOL_SOCKET="/run/php/php${PHP_VERSION}-fpm-${POOL_NAME}.sock"
|
POOL_SOCKET="/run/php/php${PHP_VERSION}-fpm-${POOL_NAME}.sock"
|
||||||
|
|
||||||
PHP_STATUS=$(
|
PHP_STATUS=$(
|
||||||
SCRIPT_NAME=$POOL_SOCKET \
|
SCRIPT_NAME=$POOL_URL \
|
||||||
SCRIPT_FILENAME=$POOL_SOCKET \
|
SCRIPT_FILENAME=$POOL_URL \
|
||||||
QUERY_STRING=json \
|
QUERY_STRING=json \
|
||||||
REQUEST_METHOD=GET \
|
REQUEST_METHOD=GET \
|
||||||
sudo cgi-fcgi -bind -connect "$POOL_URL" 2>/dev/null
|
sudo cgi-fcgi -bind -connect "$POOL_SOCKET" 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
|
|
||||||
)
|
)
|
||||||
assertNotNull "Failed to connect to $POOL_SOCKET" "$PHP_STATUS"
|
assertNotNull "Failed to connect to $POOL_SOCKET" "$PHP_STATUS"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user