From 12b750fa09a84a861153c14fc22e73f71a63f202 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Thu, 20 Feb 2025 11:28:10 +0100 Subject: [PATCH] small fixes --- check_cpu | 8 ++++---- check_cronstatus | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/check_cpu b/check_cpu index 652935c..48ce9a6 100755 --- a/check_cpu +++ b/check_cpu @@ -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 diff --git a/check_cronstatus b/check_cronstatus index 2a1c63f..5083f65 100755 --- a/check_cronstatus +++ b/check_cronstatus @@ -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 '|' ':' -- GitLab