diff --git a/lib/bkctld-check-setup b/lib/bkctld-check-setup index e68648d..1e68989 100755 --- a/lib/bkctld-check-setup +++ b/lib/bkctld-check-setup @@ -44,7 +44,6 @@ if [ -n "${FIREWALL_RULES}" ] \ fi # Check if jails are started -set -x nb_on=0 nb_off=0 for jail_name in $(jails_list); do @@ -63,13 +62,12 @@ for jail_name in $(jails_list); do fi done if [ "${nb_off}" -eq 0 ]; then - output="${output}OK - all jails are in their expected state .\n" + output="${output}OK - all jails are in their expected state.\n" else output="${output}CRITICAL - ${nb_off} jail(s) shouldn't be OFF !\n" nb_crit=$((nb_crit + 1)) [ "${return}" -le 2 ] && return=2 fi -set +x [ "${return}" -ge 0 ] && header="OK" [ "${return}" -ge 1 ] && header="WARNING"