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

[fix] options

This commit is contained in:
Ramil Valitov 2020-09-21 20:30:25 +03:00
parent 3d91f05820
commit 993d5e0c49
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -783,7 +783,7 @@ function runZabbixDiscoverReturnsData() {
OPTIONS="$OPTIONS,\"$1\"" OPTIONS="$OPTIONS,\"$1\""
done done
DATA=$(zabbix_get -s 127.0.0.1 -p 10050 -k php-fpm.discover[$OPTIONS]) DATA=$(zabbix_get -s 127.0.0.1 -p 10050 -k php-fpm.discover["$OPTIONS"])
IS_OK=$(echo "$DATA" | grep -F '{"data":[{"{#POOLNAME}"') IS_OK=$(echo "$DATA" | grep -F '{"data":[{"{#POOLNAME}"')
printElapsedTime printElapsedTime
assertNotNull "Discover script failed: $DATA" "$IS_OK" assertNotNull "Discover script failed: $DATA" "$IS_OK"