mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6861 from BarbUk/feature/itl-check-temp
Add lmsensors CheckCommand definition
This commit is contained in:
commit
d2775427da
|
@ -2602,6 +2602,19 @@ openmanage_timeout | **Optional.** Plugin timeout in seconds [default=30]
|
||||||
openmanage_vdisk_critical | **Optional.** Make any alerts on virtual disks critical
|
openmanage_vdisk_critical | **Optional.** Make any alerts on virtual disks critical
|
||||||
openmanage_warning | **Optional.** Custom temperature warning limits
|
openmanage_warning | **Optional.** Custom temperature warning limits
|
||||||
|
|
||||||
|
#### lmsensors <a id="plugin-contrib-command-lmsensors"></a>
|
||||||
|
|
||||||
|
The [check_lmsensors](https://github.com/jackbenny/check_temp) plugin,
|
||||||
|
uses the `lm-sensors` binary to monitor temperature sensors.
|
||||||
|
|
||||||
|
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||||
|
|
||||||
|
Name | Description
|
||||||
|
------------------------|----------------------------------------------------------------------------------
|
||||||
|
lmsensors_warning | **Required.** Exit with WARNING status if above INTEGER degrees
|
||||||
|
lmsensors_critical | **Required.** Exit with CRITICAL status if above INTEGER degrees
|
||||||
|
lmsensors_sensor | **Optional.** Set what to monitor, for example CPU or MB (or M/B). Check sensors for the correct word. Default is CPU.
|
||||||
|
|
||||||
#### hddtemp <a id="plugin-contrib-command-hddtemp"></a>
|
#### hddtemp <a id="plugin-contrib-command-hddtemp"></a>
|
||||||
|
|
||||||
The [check_hddtemp](https://github.com/vint21h/nagios-check-hddtemp) plugin,
|
The [check_hddtemp](https://github.com/vint21h/nagios-check-hddtemp) plugin,
|
||||||
|
|
|
@ -205,6 +205,31 @@ object CheckCommand "openmanage" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
object CheckCommand "lmsensors" {
|
||||||
|
command = [ PluginDir + "/check_lmsensors" ]
|
||||||
|
|
||||||
|
arguments = {
|
||||||
|
"-w" = {
|
||||||
|
value = "$lmsensors_warning$"
|
||||||
|
description = "Exit with WARNING status if above INTEGER degrees"
|
||||||
|
required = true
|
||||||
|
}
|
||||||
|
"-c" = {
|
||||||
|
value = "$lmsensors_critical$"
|
||||||
|
description = "Exit with CRITICAL status if above INTEGER degrees"
|
||||||
|
required = true
|
||||||
|
}
|
||||||
|
"--sensor" = {
|
||||||
|
value = "$lmsensors_sensor$"
|
||||||
|
description = "Set what to monitor, for example CPU or MB (or M/B). Check sensors for the correct word. Default is CPU."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vars.lmsensors_warning = "75"
|
||||||
|
vars.lmsensors_critical = "80"
|
||||||
|
vars.lmsensors_sensor = "Core"
|
||||||
|
}
|
||||||
|
|
||||||
object CheckCommand "hddtemp" {
|
object CheckCommand "hddtemp" {
|
||||||
import "plugin-check-command"
|
import "plugin-check-command"
|
||||||
command = [ PluginDir + "/check_hddtemp" ]
|
command = [ PluginDir + "/check_hddtemp" ]
|
||||||
|
|
Loading…
Reference in New Issue