ITL: Allow to use local mode of hpasm CheckCommand

Remove default value and "required" for `address` in hpasm ITL listing
Add a note to documentation why this special check should not have a default address

fixes #4985
fixes #4986

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Thomas Widhalm 2017-02-09 11:41:31 +01:00 committed by Michael Friedrich
parent 8c3accb304
commit b3a80e16b2
2 changed files with 15 additions and 3 deletions

View File

@ -2203,7 +2203,18 @@ This category includes all plugins for various hardware checks.
#### <a id="plugin-contrib-command-hpasm"></a> hpasm
The plugin [check_hpasm](https://labs.consol.de/de/nagios/check_hpasm/index.html) is a plugin to monitor HP hardware through the HP Insight Agent via SNMP.
The plugin [check_hpasm](https://labs.consol.de/de/nagios/check_hpasm/index.html) is a plugin to monitor HP hardware.
The plugin can run in two different ways:
1. Local execution using the `hpasmcli` command line tool.
2. Remote SNMP query which invokes the HP Insight Tools on the remote node.
You can either set or omit `hpasm_hostname` custom attribute and select the corresponding node.
The `hpasm_remote` attribute enables the plugin to execute remote SNMP queries if set to `true`.
For compatibility reasons this attribute uses `true` as default value, and ensures that
specifying the `hpasm_hostname` always enables remote checks.
Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters):
@ -2226,6 +2237,7 @@ hpasm_privpassword | **Optional.** The password for authPriv security level.
hpasm_privprotocol | **Optional.** The private protocol for SNMPv3 (des\|aes\|aes128\|3des\|3desde).
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.
hpasm_remote | **Optional.** Run remote SNMP checks if enabled. Otherwise checks are executed locally using the `hpasmcli` binary. Defaults to `true`.
#### <a id="plugin-contrib-command-adaptec-raid"></a> adaptec-raid

View File

@ -25,8 +25,8 @@ object CheckCommand "hpasm" {
arguments = {
"--hostname" = {
value = "$hpasm_hostname$"
set_if = "$hpasm_remote$"
description = "Hostname or IP-address of the server (SNMP mode only)"
required = true
}
"--community" = {
value = "$hpasm_community$"
@ -93,6 +93,6 @@ object CheckCommand "hpasm" {
description = "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 get an error and you 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"
}
}
vars.hpasm_remote = true
vars.hpasm_hostname = "$check_address$"
}