From e2d9fd0a1e59b21801fc4b500914d30e46c0d0d5 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Mon, 14 Mar 2022 14:09:44 +0100
Subject: [PATCH] show startup and check_result in journallog

---
 icinga-cli.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/icinga-cli.sh b/icinga-cli.sh
index 35cb006..e9e3e36 100755
--- a/icinga-cli.sh
+++ b/icinga-cli.sh
@@ -403,9 +403,9 @@ function processCheck(){
       # _testHttpOk ${_response} >/dev/null
       http.isOk >/dev/null
       if [ $? -eq 0 ]; then
-        _log "${_logPrefix} OK, response was sent to Icinga"
+        _elog "${_logPrefix} OK, response was sent to Icinga"
       else
-        _log "${_logPrefix} WARNING: the check response was NOT sent to Icinga"
+        _elog "${_logPrefix} WARNING: the check response was NOT sent to Icinga"
         _rc=$_rc+1
         _echo
         _echo For Debugging:
@@ -540,7 +540,7 @@ ________________________________________________________________________________
 
 "
 
-_log "Starting $_product $_version"
+_elog "Starting $_product $_version"
 
 
 if [ "$1" = "--cfg" ] && [ -n "$2" ]; then
-- 
GitLab