From 54db0b85bf9569e2cd10ac292844cb40c4e576c5 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Mon, 29 Jun 2020 16:02:20 +0300 Subject: [PATCH] [fix] IP processing --- zabbix/zabbix_php_fpm_discovery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix/zabbix_php_fpm_discovery.sh b/zabbix/zabbix_php_fpm_discovery.sh index 6dcddb5..b322a61 100644 --- a/zabbix/zabbix_php_fpm_discovery.sh +++ b/zabbix/zabbix_php_fpm_discovery.sh @@ -292,7 +292,7 @@ while IFS= read -r line; do #Check and replace * to localhost if it's found. Asterisk means that the PHP listens on #all interfaces. PrintDebug "Found TCP connection $POOL_SOCKET" - POOL_SOCKET=${POOL_SOCKET//*:/localhost:} + POOL_SOCKET=${POOL_SOCKET/\*:/localhost:} PrintDebug "Processed TCP connection $POOL_SOCKET" ProcessPool "${line}" "${POOL_SOCKET}" POOL_STATUS=$?