From 3c97963d64691d2faaee82b4adbf656423200f53 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Tue, 7 Jul 2020 07:06:56 +0300 Subject: [PATCH] [add] time execution print --- zabbix/zabbix_php_fpm_discovery.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix/zabbix_php_fpm_discovery.sh b/zabbix/zabbix_php_fpm_discovery.sh index 93e3323..4487125 100644 --- a/zabbix/zabbix_php_fpm_discovery.sh +++ b/zabbix/zabbix_php_fpm_discovery.sh @@ -338,12 +338,12 @@ function CheckExecutionTime() { ELAPSED_TIME=$(echo "$CURRENT_TIME - $START_TIME" | $S_BC) if [[ $ELAPSED_TIME -lt $MAX_EXECUTION_TIME ]]; then #All good, we can continue - PrintDebug "Check execution time OK" + PrintDebug "Check execution time OK, elapsed $ELAPSED_TIME" return 1 fi #We need to save our state and exit - PrintDebug "Check execution time: stop required" + PrintDebug "Check execution time: stop required, elapsed $ELAPSED_TIME" SavePrintResults