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

Merge branch 'simple-task/7546-icinga-check-für-ablaufende-gitlab-tokens' into 'master'

small fixes

See merge request !301
parents e78a3445 12b750fa
Branches
No related tags found
1 merge request!301small fixes
......@@ -92,10 +92,10 @@ esac
# ----------------------------------------------------------------------
# set default / override from command line params
typeset -i iWarnLimit=$( ph.getValueWithParam 75 w "$@")
typeset -i iCriticalLimit=$( ph.getValueWithParam 90 c "$@")
typeset -i iCriticalWait=$( ph.getValueWithParam 50 i "$@")
typeset -i iMinCpuUsageToShowProcesses=$( ph.getValueWithParam 50 p "$@")
typeset -i iWarnLimit; iWarnLimit=$( ph.getValueWithParam 75 w "$@")
typeset -i iCriticalLimit; iCriticalLimit=$( ph.getValueWithParam 90 c "$@")
typeset -i iCriticalWait; iCriticalWait=$( ph.getValueWithParam 50 i "$@")
typeset -i iMinCpuUsageToShowProcesses; iMinCpuUsageToShowProcesses=$( ph.getValueWithParam 50 p "$@")
# ----------------------------------------------------------------------
# get data
......
......@@ -98,7 +98,7 @@ else
else
ph.setStatus "ok"
fi
ph.status Cronjob status $( echo "$out" | tail -1 )
ph.status "Cronjob status $( echo "$out" | tail -1 )"
$statusScript -s | sed "s#\[0m##g"
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