title: Linux hardware: suspend protection
agents: linux
catalog: os/hardware
license: GPLv2
distribution: check_mk
description:
 For notebooks and desktops used as servers: would closing the lid on external
 power, or idling, suspend, hibernate or switch off the host? Read from logind's
 effective settings (HandleLidSwitchExternalPower, falling back to HandleLidSwitch;
 IdleAction) and whether suspending is possible at all (logind CanSuspend /
 CanHibernate, which include masked sleep targets and sleep.conf). WARN by default
 if so; a normal notebook that should suspend sets the states to OK with the rule
 "Linux hardware: suspend protection". The details name the fix
 (logind.conf, or masking the sleep targets).

discovery:
 One service on hosts with logind/systemd data.
