Skip to content
Snippets Groups Projects
Commit 725e4247 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '6435-check-onehost' into 'master'

add sudo

See merge request !102
parents 0cd885fb 595eb8f3
No related branches found
No related tags found
1 merge request!102add sudo
...@@ -71,7 +71,7 @@ typeset -i iCriticalLimit=$( ph.getValueWithParam 2 c "$@") ...@@ -71,7 +71,7 @@ typeset -i iCriticalLimit=$( ph.getValueWithParam 2 c "$@")
# --- get data # --- get data
cmdout=$( onehost list --csv 2>&1 ) cmdout=$( sudo onehost list --csv 2>&1 )
if ! grep "ID,NAME" <<< "$cmdout" >/dev/null; then if ! grep "ID,NAME" <<< "$cmdout" >/dev/null; then
ph.setStatus "unknown" ph.setStatus "unknown"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment