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

small fixes

parent fadf44e4
No related branches found
No related tags found
1 merge request!301small fixes
...@@ -92,10 +92,10 @@ esac ...@@ -92,10 +92,10 @@ esac
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# set default / override from command line params # set default / override from command line params
typeset -i iWarnLimit=$( ph.getValueWithParam 75 w "$@") typeset -i iWarnLimit; iWarnLimit=$( ph.getValueWithParam 75 w "$@")
typeset -i iCriticalLimit=$( ph.getValueWithParam 90 c "$@") typeset -i iCriticalLimit; iCriticalLimit=$( ph.getValueWithParam 90 c "$@")
typeset -i iCriticalWait=$( ph.getValueWithParam 50 i "$@") typeset -i iCriticalWait; iCriticalWait=$( ph.getValueWithParam 50 i "$@")
typeset -i iMinCpuUsageToShowProcesses=$( ph.getValueWithParam 50 p "$@") typeset -i iMinCpuUsageToShowProcesses; iMinCpuUsageToShowProcesses=$( ph.getValueWithParam 50 p "$@")
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# get data # get data
......
...@@ -98,7 +98,7 @@ else ...@@ -98,7 +98,7 @@ else
else else
ph.setStatus "ok" ph.setStatus "ok"
fi fi
ph.status Cronjob status $( echo "$out" | tail -1 ) ph.status "Cronjob status $( echo "$out" | tail -1 )"
$statusScript -s | sed "s#\[0m##g" $statusScript -s | sed "s#\[0m##g"
echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | tr '|' ':' echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | tr '|' ':'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment