title: Linux hardware: battery charge, health and runtime
agents: linux
catalog: os/hardware
license: GPLv2
distribution: check_mk
description:
 A host's system battery: status, charge (WARN below 30 %, CRIT below 15 %),
 health = full capacity now compared to new (WARN below 50 %, CRIT below 30 %),
 charge cycles if the firmware reports them, the firmware's charge limits.

 Runtime on battery: while discharging the kernel's figures; otherwise an
 estimate from the energy in the battery and the average power draw learned
 during earlier times on battery (or a power draw set in the rule). WARN below
 30 min, CRIT below 10 min. Batteries reporting energy (Wh) and those reporting
 charge (Ah) are both handled. Levels: rule "Linux hardware: battery".

item:
 The kernel's battery name, e.g. "BAT0".

discovery:
 One service per system battery; peripheral batteries (scope "Device") are skipped.
