Skip to content
Snippets Groups Projects

move _parseConfig

Merged Hahn Axel (hahn) requested to merge update-confighandler into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -23,11 +23,12 @@
@@ -23,11 +23,12 @@
# 2023-11-01 v0.16 ah generate json with "jo"
# 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.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.18 ah fix quoting of perfdata in json
 
# 2023-11-02 v0.19 ah move _parseConfig
# ======================================================================
# ======================================================================
_product="ICINGA PASSIVE CLIENT"
_product="ICINGA PASSIVE CLIENT"
_version="0.18"
_version="0.19"
_license="GNU GPL 3.0"
_license="GNU GPL 3.0"
_copyright='(c) Institute for Medical Education * University of Bern'
_copyright='(c) Institute for Medical Education * University of Bern'
@@ -271,6 +272,8 @@ function processCheck(){
@@ -271,6 +272,8 @@ function processCheck(){
local _myconfig=$1
local _myconfig=$1
local _force=$2
local _force=$2
 
_parseCheckConfig "${_myconfig}"
 
local iPipes; typeset -i iPipes
local iPipes; typeset -i iPipes
local iCheckStart; typeset -i iCheckStart
local iCheckStart; typeset -i iCheckStart
@@ -285,7 +288,6 @@ function processCheck(){
@@ -285,7 +288,6 @@ function processCheck(){
iCheckStart=$(_getUnixTs)
iCheckStart=$(_getUnixTs)
_parseCheckConfig "${_myconfig}"
local _logPrefix="${checkName} |"
local _logPrefix="${checkName} |"
_log "${_logPrefix} INFO: every ${checkInterval} sec: ${checkCommand}"
_log "${_logPrefix} INFO: every ${checkInterval} sec: ${checkCommand}"
Loading