check_temperature

Check temperature sensors.

Implementation

WindowsLinuxFreeBSDmacOS
✅✅✅

Argument Defaults

ArgumentDefault Value
filtertemperature != 0 and temperature != 1
warning(min != 0 && temperature < %(min)) || (crit != 0 && temperature > %(crit))
critical(min != 0 && temperature < %(min)) || (crit != 0 && temperature > %(crit))
empty-state3 (UNKNOWN)
empty-syntaxcheck_temperature failed to find any sensors.
top-syntax%(status) - %(list)
ok-syntax
detail-syntax%(sensor): %(temperature:fmt=%.1f) °C

Check Specific Arguments

ArgumentDescription
sensorShow this sensor only

Attributes

Filter Keywords

these can be used in filters and thresholds (along with the default attributes):

AttributeDescription
sensorfull name of this sensor, e.g. coretemp_core_0
namename of this sensor, e.g. coretemp
labellabel for this sensor, e.g. core 0
temperaturecurrent temperature
critcritical value supplied from sensor
maxmax value supplied from sensor
minmin value supplied from sensor

Examples

Default Check

check_temperature
OK - Package id 0: 65.0 °C, Core 0: 62.0 °C, Core 1: 61.0 °C, Core 2: 65.0 °C |...

Show all temperature sensors and apply custom thresholds:

check_temperature filter=none warn="temperature > 85" crit="temperature > 90"
OK - Package id 0: 65.0 °C, Core 0: 62.0 °C, Core 1: 61.0 °C, Core 2: 65.0 °C |...

Example using check_snclient and Naemon

Naemon Config

define command{
    command_name         check_snclient
    command_line         $USER1$/check_snclient -k -p 'your-password' -u 'https://$HOSTADDRESS$:8443' $ARG1$ $ARG2$
}

define service {
    host_name            testhost
    service_description  check_temperature
    use                  generic-service
    check_command        check_snclient!check_temperature!
}