]> granicus.if.org Git - icinga2/commitdiff
Add temp CheckCommand definition
authorBarbUk <julien.virey@gmail.com>
Sat, 22 Dec 2018 06:43:35 +0000 (10:43 +0400)
committerBarbUk <julien.virey@gmail.com>
Sat, 22 Dec 2018 06:43:35 +0000 (10:43 +0400)
doc/10-icinga-template-library.md
itl/plugins-contrib.d/hardware.conf

index e8f48ab287a0181e149b99cc3dbeb1ec4852c260..76e287a9ebbdf8cd8ef9515f9c4fd9d163d412fa 100644 (file)
@@ -2579,6 +2579,19 @@ openmanage_timeout               | **Optional.** Plugin timeout in seconds [default=30]
 openmanage_vdisk_critical      | **Optional.** Make any alerts on virtual disks critical
 openmanage_warning             | **Optional.** Custom temperature warning limits
 
+#### temp <a id="plugin-contrib-command-temp"></a>
+
+The [check_temp](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
+------------------------|----------------------------------------------------------------------------------
+temp_warning            | **Required.** Exit with WARNING status if above INTEGER degrees
+temp_critical           | **Required.** Exit with CRITICAL status if above INTEGER degrees
+temp_sensor             | **Optional.** Set what to monitor, for example CPU or MB (or M/B). Check sensors for the correct word. Default is CPU.
+
 #### adaptec-raid <a id="plugin-contrib-command-adaptec-raid"></a>
 
 The [check_adaptec_raid](https://github.com/thomas-krenn/check_adaptec_raid) plugin
index e88b611d2c2826ec0e62b9da2e5f98d2c534aaea..53455a242aa43ab5efd4c0039c1ae2f9d853e710 100644 (file)
@@ -204,3 +204,28 @@ object CheckCommand "openmanage" {
                }
        }
 }
+
+object CheckCommand "temp" {
+       command = [ PluginDir + "/check_temp" ]
+
+       arguments = {
+               "-w" = {
+                       value = "$temp_warning$"
+                       description = "Exit with WARNING status if above INTEGER degrees"
+                       required = true
+               }
+               "-c" = {
+                       value = "$temp_critical$"
+                       description = "Exit with CRITICAL status if above INTEGER degrees"
+                       required = true
+               }
+               "--sensor" = {
+                       value = "$temp_sensor$"
+                       description = "Set what to monitor, for example CPU or MB (or M/B). Check sensors for the correct word. Default is CPU."
+               }
+       }
+
+       vars.temp_warning = "75"
+       vars.temp_critical = "80"
+       vars.temp_sensor = "Core"
+}