]> granicus.if.org Git - icinga2/commitdiff
Add a check command for check_hpjd
authorGunnar Beutner <gunnar@beutner.name>
Mon, 2 Feb 2015 09:57:21 +0000 (10:57 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 2 Feb 2015 09:57:21 +0000 (10:57 +0100)
refs #6225

doc/6-icinga-template-library.md
itl/command-plugins.conf

index a6a6acba3a2fb875e8e49efdd9ed43f7987a2430..a102cd6ed83df519b6f535925a6d770df486ab98 100644 (file)
@@ -615,7 +615,19 @@ Check command for the `check_apt` plugin.
 
 The `apt` check command does not support any vars.
 
+### <a id="plugin-check-command-hpjd"></a> 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".
+
+#
 ### <a id="plugin-check-command-running-kernel"></a> running_kernel
 
 Check command object for the `check_running_kernel` plugin
index 35aa34cfc01f80fa63137c80ad75a545b2ef04c6..36fdcc33ae868b4d8523258bd80c85b5f60d6d8c 100644 (file)
@@ -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"