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

[fix] correct grep of pool name #10

This commit is contained in:
Ramil Valitov 2019-11-28 12:14:09 +03:00
parent fc5b1d583c
commit e6b19fc940
No known key found for this signature in database
GPG Key ID: 645768E8FD0E18C7

View File

@ -45,7 +45,7 @@ POOL_FIRST=0
echo -n "{\"data\":["
while IFS= read -r line
do
POOL_PID=`printf '%s\n' "${PS_LIST[@]}" | $S_GREP "php-fpm: pool $line" | $S_HEAD -1 | $S_AWK '{print $1}'`
POOL_PID=`printf '%s\n' "${PS_LIST[@]}" | $S_GREP "php-fpm: pool $line$" | $S_HEAD -1 | $S_AWK '{print $1}'`
if [[ ! -z $POOL_PID ]]; then
#We search for socket or IP address and port
#Socket example: