Add a check command for check_ide_smart

refs #6225
This commit is contained in:
Dirk Goetz 2015-11-09 14:56:05 +01:00 committed by Michael Friedrich
parent c999badd14
commit a8b7bdc633
2 changed files with 24 additions and 0 deletions

View 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

View 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
}
}
}