5.13. dhcp

DHCP metrics check.

loader

lua

object

noit.module.dhcp

5.13.1. Module Configuration

5.13.2. Check Configuration

send_port
required

optional

default

67

allowed

\d+

Specifies the port to send DHCP request packets to

hardware_addr
required

required

default

00:00:00:00:00:00

allowed

.+

The hardware address of the host computer

host_ip
required

optional

default

0.0.0.0

allowed

.+

The IP address of the host computer

request_type
required

optional

default

1

allowed

^(?:1|8)

The type of DHCP request message to send

Example 5.14. Checking DHCP connection.

This example checks DHCP connection

      <noit>
        <modules>
          <loader image="lua" name="lua">
            <config><directory>/opt/reconnoiter/libexec/modules-lua/?.lua</directory></config>
          </loader>
          <module loader="lua" name="dhcp" object="noit.module.dhcp" />
        </modules>
        <checks>
            <check uuid="79ba881e-ad2e-11de-9fb0-a322e3288ca7" name="dhcp">
              <config>
                <hardware_addr>00:00:00:00:00:00</hardware_addr>
                <host_ip>10.80.1.2</host_ip>
              </config>
            </check>
        </checks>
      </noit>