PRTG Manual: DHCP Sensor
The DHCP sensor monitors a Dynamic Host Configuration Protocol (DHCP) server. It sends a broadcast message to the network and waits for a DHCP server to respond.
This sensor shows the address of the server and the offered IP address in the sensor message. You can check the server's response via regular expressions.
For a detailed list and descriptions of the channels that this sensor can show, see section Channel List.
- Dutch: DHCP
- French: DHCP
- German: DHCP
- Japanese: DHCP
- Portuguese: DHCP
- Russian: DHCP
- Simplified Chinese: DHCP
- Spanish: DHCP
Consider the following remarks and requirements for this sensor:
Remark |
Description |
---|---|
Sensor creation |
You can create this sensor only on a probe device. |
Static IP address |
The probe device where you create this sensor must have a static IP address. It cannot get its IP address from DHCP because this can cause a DHCP failure that results in a severe issue for the probe device so that you risk losing monitoring data. |
IPv4 |
This sensor only supports IPv4. |
Performance impact |
This sensor has a low performance impact. |
DHCP unavailable |
This sensor shows a timeout error if no DHCP is available, or if you use more than two DHCP sensors per device. |
Link-local address |
Adding this sensor on a link-local address is valid and is not prohibited. However, as this is a local IP address, the sensor does not receive any data and shows a timeout error. |
Add Sensor dialog |
Choose the network adapter on the probe system that is used to send the broadcast message in the Add Sensor dialog. |
Knowledge Base |
Knowledge Base: How can I monitor a DHCP server in a specific network if there are several DHCP networks? |
Hosted probe |
You cannot add this sensor to the hosted probe of a PRTG Hosted Monitor instance. If you want to use this sensor, add it to a remote probe device. |
The sensor has the following default tags that are automatically predefined in the sensor's settings when you add the sensor:
- dhcpsensor
For more information about basic sensor settings, see section Sensor Settings.
Setting |
Description |
---|---|
MAC Address |
The MAC address of the network adapter that sends the broadcast message to the network. |
Client IP Address |
Specify if you want to check the returned client IP address with a regular expression (regex):
|
Client IP Address Must Include (Down Status if Not Included) |
This setting is only visible if you select Check the IP address using a regular expression above. In the response of the DHCP server, search by using a regex. If the response for the client IP address does not contain this string, the sensor shows the Down status. For example, enter 10\.0\.5\..* to make sure that any answering DHCP server returns any client IP address starting with 10.0.5.. If it does not, the sensor shows the Down status. Leave this field empty if you do not want to use it. PRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions. |
Client IP Address Must Not Include (Down Status if Included) |
This setting is only visible if you select Check the IP address using a regular expression above. In the response of the DHCP server, search by using a regex. If the response for the client IP address contains this string, this sensor shows the Down status. See the example above. Leave this field empty if you do not want to use it. PRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions. |
Server IP Address |
Specify if you want to check the returned server IP address with a regex:
|
Server IP Address Must Include (Down Status if Not Included) |
This setting is only visible if you select Check the IP address using a regular expression above. In the response of the DHCP server, search by using a regex. If the response for the server IP address does not contain this string, this sensor shows the Down status. See the example above. Leave this field empty if you do not want to use it. PRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions. |
Server IP Address Must Not Include (Down Status if Included) |
This setting is only visible if you select Check the IP address using a regular expression above. In the response of the DHCP server, search by using a regex. If the response for the server IP address contains this string, this sensor shows the Down status. See the example above. Leave this field empty if you do not want to use it. PRTG supports Perl Compatible Regular Expression (PCRE) regex. For more information, see section Regular Expressions. |
Timeout (Sec.) |
Enter a timeout in seconds for the request. Enter an integer. The maximum timeout value is 900 seconds (15 minutes). If the reply takes longer than this value, the sensor cancels the request and shows a corresponding error message. |
If Server Changes |
If there is more than one DHCP server in the network that can respond to the broadcast message, the sensor can receive a response from a different DHCP server compared to the last scan of the sensor. In this case, PRTG can write an entry to the system logs. Define what PRTG does if DHCP servers change:
Regardless of this setting, entries are always added to the sensor log. |
If IP Address Changes |
If the IP address offered by the DHCP server changes between two sensor scans, PRTG can write an entry to the system logs. Define what PRTG does if IP addresses change:
Regardless of this setting, entries are always added to the sensor log. |
Setting |
Description |
---|---|
Primary Channel |
Select a channel from the list to define it as the primary channel. In the device tree, PRTG displays the last value of the primary channel below the sensor's name. The available options depend on what channels are available for this sensor. You can set a different primary channel later by clicking below a channel gauge on the sensor's Overview tab. |
Graph Type |
Define how this sensor shows different channels:
|
Stack Unit |
This setting is only visible if you select Stack channels on top of each other above. Select a unit from the list. PRTG stacks all channels with this unit on top of each other. By default, you cannot exclude single channels from stacking if they use the selected unit. However, there is an advanced procedure to do so. |
By default, all of these settings are inherited from objects that are higher in the hierarchy. We recommend that you change them centrally in the root group settings if necessary. To change a setting for this object only, click under the corresponding setting name to disable the inheritance and to display its options.
For more information, see section Inheritance of Settings.
Which channels the sensor actually shows might depend on the target device, the available components, and the sensor setup.
Channel |
Description |
---|---|
Downtime |
In the channel table on the Overview tab, this channel never shows any values. PRTG uses this channel in graphs and reports to show the amount of time in which the sensor was in the Down status. |
Lease Time |
The lease time reported by the server |
Response Time |
The response time This channel is the primary channel by default. |
KNOWLEDGE BASE
How can I monitor a DHCP server in a specific network if there are several DHCP networks?
What security features does PRTG include?