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

eol: remove negative performance data

parent d4e9700f
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@
# 2020-03-05 v1.1 <axel.hahn@iml.unibe.ch> switch to ph.* helper functions
# 2021-03-26 v1.2 <axel.hahn@iml.unibe.ch> test major version if minor version was not detected
# 2021-11-02 v1.3 <axel.hahn@iml.unibe.ch> detect centos stream
# 2022-02-28 v1.4 <axel.hahn@iml.unibe.ch> remove negative performance data
# ======================================================================
. `dirname $0`/inc_pluginfunctions
......@@ -256,6 +257,8 @@ else
grep "^$myKey:" $eolcfg | grep -v ":$myKey:[0-9]" | cut -f 3- -d ":"
echo
echo "Limit Info: warn below $iDaysWarn days; critical below $iDaysCritical days"
test ${myDaysLeft} -lt 0 && myDaysLeft=0
ph.perfadd "$myKey-v$myEolVer" "${myDaysLeft}" $iDaysWarn $iDaysCritical 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment