check_temperature
Check temperature sensors.
Implementation
| Windows | Linux | FreeBSD | macOS |
|---|---|---|---|
| ✅ | ✅ | ✅ |
Argument Defaults
| Argument | Default Value |
|---|---|
| filter | temperature != 0 and temperature != 1 |
| warning | (min != 0 && temperature < %(min)) || (crit != 0 && temperature > %(crit)) |
| critical | (min != 0 && temperature < %(min)) || (crit != 0 && temperature > %(crit)) |
| empty-state | 3 (UNKNOWN) |
| empty-syntax | check_temperature failed to find any sensors. |
| top-syntax | %(status) - %(list) |
| ok-syntax | |
| detail-syntax | %(sensor): %(temperature:fmt=%.1f) °C |
Check Specific Arguments
| Argument | Description |
|---|---|
| sensor | Show this sensor only |
Attributes
Filter Keywords
these can be used in filters and thresholds (along with the default attributes):
| Attribute | Description |
|---|---|
| sensor | full name of this sensor, e.g. coretemp_core_0 |
| name | name of this sensor, e.g. coretemp |
| label | label for this sensor, e.g. core 0 |
| temperature | current temperature |
| crit | critical value supplied from sensor |
| max | max value supplied from sensor |
| min | min 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!
}