ITL: Add SMART attributes monitoring plugin check configuration

refs #5019

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Thomas Niedermeier 2017-02-21 13:33:54 +01:00 committed by Michael Friedrich
parent ad0d8d2b9e
commit 06fa96f83d
2 changed files with 33 additions and 0 deletions

View File

@ -2227,6 +2227,15 @@ hpasm_privprotocol | **Optional.** The private protocol for SNMPv3 (des\|aes\|a
hpasm_servertype | **Optional.** The type of the server: proliant (default) or bladesystem.
hpasm_eval-nics | **Optional.** Check network interfaces (and groups). Try it and report me whyt you think about it. I need to build up some know how on this subject. If you get an error and think, it is not justified for your configuration, please tell me about it. (alwasy send the output of "snmpwalk -On .... 1.3.6.1.4.1.232" and a description how you setup your nics and why it is correct opposed to the plugins error message.
#### <a id="plugin-contrib-command-smart-attributes"></a> smart-attributes
The plugin [check_smart_attributes](https://github.com/thomas-krenn/check_smart_attributes) is a plugin to monitor the SMART values of SSDs and HDDs.
Name | Description
--------------------------------|-----------------------------------------------------------------------
smart_attributes_config_path | **Required.** Path to the smart attributes config file (e.g. check_smartdb.json).
smart_attributes_device | **Required.** Insert the device name (e.g. /dev/sda) to monitor.
### <a id="plugin-contrib-icingacli"></a> IcingaCLI

View File

@ -0,0 +1,24 @@
/*
* Icinga2 CheckCommand definition for the SMART Attributes Monitoring Plugin
*/
object CheckCommand "smart-attributes" {
import "plugin-check-command"
command = [ PluginDir + "/check_smart_attributes" ]
arguments = {
"-dbj" = {
required = true
value = "$smart_attributes_config_path$"
description = "Path to the smart attributes config file (e.g. check_smartdb.json)"
}
"-d" = {
required = true
value = "$smart_attributes_device$"
description = "Insert the device name (e.g. /dev/sda) to monitor"
}
}
vars.smart_attributes_config_path = SysconfDir + "/icinga2/plugins-config/check_smartdb.json"
}