diff --git a/check_onehost b/check_onehost index 579c95462c38c34add0ec3a29633e3fd8aaf9c04..f360fa4e511e5d4c8e7d96137b752f6d3677073e 100755 --- a/check_onehost +++ b/check_onehost @@ -71,7 +71,7 @@ typeset -i iCriticalLimit=$( ph.getValueWithParam 2 c "$@") # --- get data -cmdout=$( onehost list --csv 2>&1 ) +cmdout=$( sudo onehost list --csv 2>&1 ) if ! grep "ID,NAME" <<< "$cmdout" >/dev/null; then ph.setStatus "unknown"