From 974926ed63ef4508d41fd397e0b66c5148529c88 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Tue, 7 Jul 2020 06:27:30 +0300 Subject: [PATCH] [fix] sleep timeout --- tests/all.sh | 1 + zabbix/zabbix_php_fpm_discovery.sh | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/all.sh b/tests/all.sh index 3bd1d1f..5ad0cdd 100644 --- a/tests/all.sh +++ b/tests/all.sh @@ -75,6 +75,7 @@ setupPool() { copyPool "$POOL_FILE" "$POOL_NAME" "$POOL_SOCKET" "static" sudo service "php${PHP_VERSION}-fpm" restart + sudo systemctl status "php${PHP_VERSION}-fpm.service" } setupPools() { diff --git a/zabbix/zabbix_php_fpm_discovery.sh b/zabbix/zabbix_php_fpm_discovery.sh index 14f6dea..93e3323 100644 --- a/zabbix/zabbix_php_fpm_discovery.sh +++ b/zabbix/zabbix_php_fpm_discovery.sh @@ -23,7 +23,7 @@ DEBUG_MODE="" USE_SLEEP_TIMEOUT="" #Sleep timeout in seconds -SLEEP_TIMEOUT="0.7" +SLEEP_TIMEOUT="0.5" #Checking all the required executables S_PS=$(type -P ps) @@ -641,11 +641,11 @@ for POOL_ITEM in "${PENDING_LIST[@]}"; do if [[ -n "$POOL_NAME" ]] && [[ -n "$POOL_SOCKET" ]]; then ProcessPool "$POOL_NAME" "$POOL_SOCKET" - #Used for debugging: - sleepNow - #Confirm that we run not too much time CheckExecutionTime + + #Used for debugging: + sleepNow fi done