]> granicus.if.org Git - icinga2/commitdiff
Add a check command for check_ide_smart
authorDirk Goetz <dirk.goetz@netways.de>
Mon, 9 Nov 2015 13:56:05 +0000 (14:56 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 3 Aug 2016 09:32:41 +0000 (11:32 +0200)
refs #6225

doc/7-icinga-template-library.md
itl/command-plugins.conf

index 83ed8aa768780f8476882065cb00b3a1bb5515e2..1434c65fac89cc78144afc6000fccd06fdeee017 100644 (file)
@@ -898,6 +898,16 @@ simap_timeout          | **Optional.** Seconds before connection times out (defa
 simap_ipv4             | **Optional.** Use IPv4 connection. Defaults to false.
 simap_ipv6             | **Optional.** Use IPv6 connection. Defaults to false.
 
+### <a id="plugin-check-command-smart"></a> smart
+
+Check command object for the `check_ide_smart` plugin. Requires installation of `smartctl`.
+
+Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters):
+
+Name            | Description
+----------------|--------------
+smart_device    | **Required.** The name of a local hard drive to monitor.
+
 
 ### <a id="plugin-check-command-smtp"></a> smtp
 
index 526fb7bf0f7aa0651cfb3e4f69c175c1caa858db..cae729c03e0a33d71d1011d3f388ddc05edce0c8 100644 (file)
@@ -2139,3 +2139,17 @@ object CheckCommand "file_age" {
 
        vars.file_age_ignoremissing = false
 }
+
+object CheckCommand "smart" {
+       import "plugin-check-command"
+
+       command = [ PluginDir + "/check_ide_smart" ]
+
+       arguments = {
+               "-d" = {
+                       value = "$smart_device$"
+                       description = "Name of a local hard drive to monitor"
+                       required = true
+               }
+       }
+}