Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: ef4550ce25e769143d8a1f523e21115408347ef5
https://github.com/tribe29/checkmk/commit/ef4550ce25e769143d8a1f523e2111540…
Author: Benedikt Seidl <benedikt.seidl(a)gmx.de>
Date: 2022-08-18 (Thu, 18 Aug 2022)
Changed paths:
A .werks/13425
M agents/check_mk_agent.openwrt
Log Message:
-----------
13425 FIX Execute local checks in openwrt agent
Before this werk local checks where not executed.
In debug mode the following error message was visible:
_log_section_time: not found
The problem can be easily reproduced by the following command:
docker run --rm busybox ash -c "
mkdir -p /usr/lib/check_mk_agent/local;
echo "date" > /usr/lib/check_mk_agent/local/test.sh;
chmod +x /usr/lib/check_mk_agent/local/test.sh;
wget -O /tmp/cmka
https://raw.githubusercontent.com/tribe29/checkmk/2.1.0/agents/check_mk_age…;
ash /tmp/cmka -d"
The following line will be visible:
/tmp/cmka: line 1129: _log_section_time: not found
After this change, the current date will be printed instead of this
error.
Change-Id: Ibff83f82e8b64eda792f0985efc791be22942784