mirror of
https://github.com/rvalitov/zabbix-php-fpm.git
synced 2023-11-05 03:30:27 +01:00
[add] info for IP processing
This commit is contained in:
parent
24153d7d49
commit
8d642e70cb
@ -291,8 +291,9 @@ while IFS= read -r line; do
|
|||||||
if [[ -n $LISTEN ]]; then
|
if [[ -n $LISTEN ]]; then
|
||||||
#Check and replace * to localhost if it's found. Asterisk means that the PHP listens on
|
#Check and replace * to localhost if it's found. Asterisk means that the PHP listens on
|
||||||
#all interfaces.
|
#all interfaces.
|
||||||
POOL_SOCKET=$(${S_ECHO} -n "${POOL_SOCKET/*:/localhost:}")
|
|
||||||
PrintDebug "Found TCP connection $POOL_SOCKET"
|
PrintDebug "Found TCP connection $POOL_SOCKET"
|
||||||
|
POOL_SOCKET=${POOL_SOCKET//*:/localhost:}
|
||||||
|
PrintDebug "Processed TCP connection $POOL_SOCKET"
|
||||||
ProcessPool "${line}" "${POOL_SOCKET}"
|
ProcessPool "${line}" "${POOL_SOCKET}"
|
||||||
POOL_STATUS=$?
|
POOL_STATUS=$?
|
||||||
if [[ ${POOL_STATUS} -gt 0 ]]; then
|
if [[ ${POOL_STATUS} -gt 0 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user