NAME
Monitoring::Sneck::Checks::thermal_throttle - checks for CPUs being thermally throttled
VERSION
Version 0.0.1
SYNOPSIS
thermal_throttle|perl:thermal_throttle
thermal_throttle_laptop|perl:thermal_throttle -w 100 -c 1000
DESCRIPTION
Counts the thermal throttle events since the last run, from the counters Linux keeps under /sys/devices/system/cpu/cpu*/thermal_throttle for Intel CPUs. By default any is WARNING.
There are core and package counters. Hyperthreads of a core share its counters, and every CPU in a package shows the package's, so they are counted once each, going by the topology under each CPU. --warning and --critical go by the worse of the two.
The counters are kept in a state file, see "read_state" in Monitoring::Sneck::Checks::base, so the first run, and the first after a reboot, have nothing to compare to and are OK. The counts since boot are said as well.
The milliseconds throttled are said when the kernel has the *_throttle_total_time_ms counters.
- CRITICAL :: New core or package events over --critical.
- WARNING :: New core or package events over --warning.
- UNKNOWN :: Not being Linux, or the state not being readable or writable.
- OK :: Everything else, including having no counters, as with AMD CPUs and most VMs, so the same check can go everywhere.
OPTIONS
- -w, --warning :: Range for the new core or package events. Default :: 0
- -c, --critical :: Range for the new core or package events.
METHODS
check
Does the check.