Add check command for check_dhcp.

Refs #6225
This commit is contained in:
Gunnar Beutner 2014-05-17 13:33:57 +02:00
parent 59cbd2b2b9
commit bbb2fb62dd
2 changed files with 34 additions and 0 deletions

View File

@ -304,6 +304,21 @@ snmp_address | **Optional.** The host's address. Defaults to "$address$".
snmp_oid | **Optional.** The SNMP OID. Defaults to "1.3.6.1.2.1.1.3.0".
snmp_community | **Optional.** The SNMP community. Defaults to "public".
#### <a id="plugin-check-command-dhcp"></a> dhcp
Check command object for the `check_dhcp` plugin.
Custom Attributes:
Name | Description
----------------|--------------
dhcp_serverip | **Optional.** The IP address of the DHCP server which we should get a response from.
dhcp_requestedip| **Optional.** The IP address which we should be offered by a DHCP server.
dhcp_timeout | **Optional.** The timeout in seconds.
dhcp_interface | **Optional.** The interface to use.
dhcp_mac | **Optional.** The MAC address to use in the DHCP request.
dhcp_unicast | **Optional.** Whether to use unicast requests. Defaults to false.
#### <a id="plugin-check-command-nscp"></a> nscp
Check command object for the `check_nt` plugin.

View File

@ -287,6 +287,25 @@ object CheckCommand "apt" {
]
}
object CheckCommand "dhcp" {
import "plugin-check-command"
command = PluginDir + "/check_dhcp"
arguments = {
"-s" = "$dhcp_serverip$"
"-r" = "$dhcp_requestedip$"
"-t" = "$dhcp_timeout$"
"-i" = "$dhcp_interface$"
"-m" = "$dhcp_mac$"
"-u" = {
set_if = "$dhcp_unicast$"
}
}
vars.dhcp_unicast = false
}
object CheckCommand "nscp" {
import "plugin-check-command"