From 2f687668ccc13ebcd7fa54d94b3739153a33902e Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Tue, 17 Dec 2024 10:46:51 +0100 Subject: [PATCH] less log lines for skipped jobs --- icinga-cli.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/icinga-cli.sh b/icinga-cli.sh index bcc1b61..60ef01f 100755 --- a/icinga-cli.sh +++ b/icinga-cli.sh @@ -25,11 +25,12 @@ # 2023-11-02 v0.18 ah fix quoting of perfdata in json # 2023-11-02 v0.19 ah move _parseConfig # 2024-11-20 v0.20 ah update rest api client; use cert "${dir_cfg}/certs/ca.crt" +# 2024-12-17 v0.21 ah less log lines for skipped jobs # ====================================================================== _product="ICINGA PASSIVE CLIENT" -_version="0.20" +_version="0.21" _license="GNU GPL 3.0" _copyright='(c) Institute for Medical Education * University of Bern' @@ -298,7 +299,7 @@ function processCheck(){ iCheckStart=$(_getUnixTs) local _logPrefix="${checkName} |" - _log "${_logPrefix} INFO: every ${checkInterval} sec: ${checkCommand}" + # _log "${_logPrefix} INFO: every ${checkInterval} sec: ${checkCommand}" _initHttp @@ -422,7 +423,8 @@ function processCheck(){ fi else - _log "${_logPrefix} SKIP execution." + # _log "${_logPrefix} SKIP execution." + return 0 fi # add current result to global returncode -- GitLab