Werk #4760: Fixed vanishing CUPS queues services on systems using systemd

Component Checks & agents
Title Fixed vanishing CUPS queues services on systems using systemd
Date Jun 17, 2017
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.5.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0p6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When monitoring CUPS queues on linux systems using systemd it happened that the agent did not provide CUPS queue information suddenly.

When using systemd the cupsd process is stopped when nothing is using the daemon. Systemd is starting the daemon again automatically once any process wants use the printer system.

The CUPS part of the Check_MK agent was only executed when the cupsd process was running which is wrong for such systems. Additionally the agent is now checking whether or not systemd is used and the cups.service is enabled and checks the queues if so, even when the cupsd is not running.

To the list of all Werks