From: Gunnar Beutner Date: Mon, 2 Feb 2015 09:57:21 +0000 (+0100) Subject: Add a check command for check_hpjd X-Git-Tag: v2.3.0~304 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d551fa99fb87855556c410ddd4cbde77a53ec33;p=icinga2 Add a check command for check_hpjd refs #6225 --- diff --git a/doc/6-icinga-template-library.md b/doc/6-icinga-template-library.md index a6a6acba3..a102cd6ed 100644 --- a/doc/6-icinga-template-library.md +++ b/doc/6-icinga-template-library.md @@ -615,7 +615,19 @@ Check command for the `check_apt` plugin. The `apt` check command does not support any vars. +### hpjd +Check command object for the `check_hpjd` plugin. + +Custom Attributes: + +Name | Description +----------------|-------------- +hpjd_address | **Optional.** The host's address. Defaults to "$address$". +hpjd_port | **Optional.** The host's SNMP port. Defaults to 161. +hpjd_community | **Optional.** The SNMP community. Defaults to "public". + +# ### running_kernel Check command object for the `check_running_kernel` plugin diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 35aa34cfc..36fdcc33a 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -885,6 +885,20 @@ object CheckCommand "nrpe" { timeout = 5m } +object CheckCommand "hpjd" { + import "plugin-check-command" + + command = [ PluginDir + "/check_hpjd" ] + + arguments = { + "-H" = "$hpjd_address$" + "-C" = "$hpjd_community$" + "-p" = "$hpjd_port$" + } + + vars.hpjd_address = "$address$" +} + /* Contrib plugins */ object CheckCommand "running_kernel" { import "plugin-check-command"