Werk #6940: Fix OnlyFrom entry in check_mk agent section

Component Agent bakery
Title Fix OnlyFrom entry in check_mk agent section
Date Jan 31, 2019
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 1.5.0p12 1.6.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Previously, the OnlyFrom entry, that represents the list of only-from IP entries within the xinetd-configuration, rendered empty for baked agents.

The cause for this was that the agent was looking for the service name "check_mk", that only is used by the raw agent.

The agent is now looking for the right service name set from the agent bakery, i.e. "check-mk-agent" or a user-specified name coming from the "name of agent packages" rule.

To the list of all Werks