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:
parent
fc5b1d583c
commit
e6b19fc940
@ -45,7 +45,7 @@ POOL_FIRST=0
|
|||||||
echo -n "{\"data\":["
|
echo -n "{\"data\":["
|
||||||
while IFS= read -r line
|
while IFS= read -r line
|
||||||
do
|
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
|
if [[ ! -z $POOL_PID ]]; then
|
||||||
#We search for socket or IP address and port
|
#We search for socket or IP address and port
|
||||||
#Socket example:
|
#Socket example:
|
||||||
|
Loading…
Reference in New Issue
Block a user