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

Merge branch 'update-confighandler' into 'master'

move _parseConfig

See merge request !35
parents ae80f4a7 73535b2b
Branches
No related tags found
1 merge request!35move _parseConfig
...@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment