diff --git a/check_webservice_load.sh b/check_webservice_load.sh index 620ef68..dfae912 100755 --- a/check_webservice_load.sh +++ b/check_webservice_load.sh @@ -79,6 +79,22 @@ trim() { } +#--------------------------------------- +#----------------------------- +# Check some prerequisites +#----------------------------- +#--------------------------------------- + +if [[ -t 1 ]] ; then + terminal=true + LOGGING=true +else + terminal=false + LOGGING=false +fi + + + #--------------------------------------- #----------------------------- # Check some prerequisites diff --git a/conf/check_webservice_load.conf.sample b/conf/check_webservice_load.conf.sample index 5b29fed..a686268 100644 --- a/conf/check_webservice_load.conf.sample +++ b/conf/check_webservice_load.conf.sample @@ -4,8 +4,15 @@ #----------------------------- #--------------------------------------- -#LOGGING=true -LOGGING=false + +# --- +# - LOGGING +# - +# - This Parameter is now obsolete. If script is running in a terminal, then output ist verbose, +# - the output will be verbos. If running as cronjob, output will only be written, if warnings or +# - errors occurs. +# --- + # - What to check # -