Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 9a5a032418280a99fc69c8704373af03af12fab2
https://github.com/tribe29/checkmk/commit/9a5a032418280a99fc69c8704373af03a…
Author: Joerg Herbel <joerg.herbel(a)tribe29.com>
Date: 2021-08-19 (Thu, 19 Aug 2021)
Changed paths:
A .werks/13121
M agents/check_mk_agent.linux
Log Message:
-----------
13121 FIX Linux agent: Produce <tt>ntp</tt> section on additional systems
(eg. Slackware)
Before producing the <tt>ntp</tt> section, the linux agent checks if a
corresponding
<tt>systemd<tt> service or a deamon under <tt>/etc/init.d/</tt>
exits. Hence, on
systems without <tt>systemd<tt> and <tt>init.d</tt>, such as
Slackware, the
<tt>ntp</tt> section was never produced.
The agent now additionally checks if <tt>/etc/rc.d/rc.ntpd</tt> is found and
executable. This re-enables the <tt>ntp</tt> section for example for
Slackware.
Closes #389
Change-Id: Ie71c4f8cbdd350b08e71d265537ec71b79eb2fe2