Werk #4760

KomponenteChecks & Agents
TitelFixed vanishing CUPS queues services on systems using systemd
Datum2017-06-17 11:06:07
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.4.0p6,1.5.0i1
Level1 - Triviale Änderung
KlasseBug Fix
KompatibilitätCompatible - no manual interaction needed

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.