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:
parent
3d91f05820
commit
993d5e0c49
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user