Skip to content

Commit

Permalink
Add a check command for check_hpjd
Browse files Browse the repository at this point in the history
refs #6225
  • Loading branch information
gunnarbeutner committed Feb 2, 2015
1 parent 1bff5eb commit 8d551fa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/6-icinga-template-library.md
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions itl/command-plugins.conf
Expand Up @@ -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"
Expand Down

0 comments on commit 8d551fa

Please sign in to comment.