diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 83ed8aa76..1434c65fa 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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. +### 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. + ### smtp diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 526fb7bf0..cae729c03 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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 + } + } +}