diff --git a/check_systemdunit b/check_systemdunit index aeb35b1b79e65487bb433a88e4a6be1bc881bfd8..54360894babf1759fcbdeecedfbdb896beb1f875 100755 --- a/check_systemdunit +++ b/check_systemdunit @@ -153,7 +153,7 @@ if [ $_iActive -eq 0 ]; then ph.setStatus critical else typeset -i _iInstances; _iInstances=$( grep -c "Loaded: " <<< "${_data}" ) - if [ $_iInstances -gt 0 ]; then + if [ $_iInstances -gt 1 ]; then _status="$_iActive of $_iInstances ${_unit} units are active" _out="$_data"