From b0758a0e76478960d3db23e01ce9c113ba42114b Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Fri, 21 Oct 2022 10:57:18 +0200
Subject: [PATCH] fix fpm-status

---
 check_php-fpm-status | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_php-fpm-status b/check_php-fpm-status
index 43ece8e..eb92cc7 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 }'
 }
 
 
-- 
GitLab