diff --git a/check_php-fpm-status b/check_php-fpm-status index 43ece8ec6c98c73acd5fe58239479992a14b7ac3..eb92cc712a4018cae532c9165d594eb7a143bd92 100755 --- a/check_php-fpm-status +++ b/check_php-fpm-status @@ -62,7 +62,7 @@ function _getWorkerOfState(){ # param string variable (part before ":") function _getvalue(){ # grep "^$1:" $tmpfile | cut -d ":" -f 2 | awk '{ print $1 }' - _getServicedata | grep "^ "$1\":" | cut -d ":" -f 2 | awk '{ print $1 }' + _getServicedata | grep "^ \"$1\":" | cut -d ":" -f 2 | awk '{ print $1 }' }