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

move _parseConfig

parent 0b38df52
Branches
No related tags found
1 merge request!35move _parseConfig
......@@ -23,11 +23,12 @@
# 2023-11-01 v0.16 ah generate json with "jo"
# 2023-11-02 v0.17 ah fix line breaks of sent output, shell check fixes
# 2023-11-02 v0.18 ah fix quoting of perfdata in json
# 2023-11-02 v0.19 ah move _parseConfig
# ======================================================================
_product="ICINGA PASSIVE CLIENT"
_version="0.18"
_version="0.19"
_license="GNU GPL 3.0"
_copyright='(c) Institute for Medical Education * University of Bern'
......@@ -271,6 +272,8 @@ function processCheck(){
local _myconfig=$1
local _force=$2
_parseCheckConfig "${_myconfig}"
local iPipes; typeset -i iPipes
local iCheckStart; typeset -i iCheckStart
......@@ -285,7 +288,6 @@ function processCheck(){
iCheckStart=$(_getUnixTs)
_parseCheckConfig "${_myconfig}"
local _logPrefix="${checkName} |"
_log "${_logPrefix} INFO: every ${checkInterval} sec: ${checkCommand}"
......@@ -322,7 +324,7 @@ function processCheck(){
#
# --- this executes the check plugin ...
#
_log "${_logPrefix} starting $myFullscript $myparams"
_log "${_logPrefix} starting $myFullscript $myparams - $_outfile"
iTsStart=$(date +%s)
eval $myFullscript $myparams > "$_outfile"
rc=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment