<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br>
Howdy all, <div><br></div><div>I recently submitted a patch for the check_dhcp plugin, and I wanted to provide some additional feedback to the committers to help them in their consideration of including this patch in the next release.  We've deployed this patched sensor to over 100 networks so far with widely varying DHCP server implementations, and have had no reported issues.  This patch corrects behavior we observed in a few DHCP server implementations where the DHCP servers exhausted their free IP pools because the current check_dhcp sensor doesn't broadcast a subsequent DHCPREQUEST to allow these servers to clear out their previous offered IPs.  Details of the patch below.</div><div><br></div><div>-mike</div><div><br></div><div><br></div><div><meta charset="utf-8"><span class="Apple-style-span" style="color: rgb(85, 85, 85); font-family: arial, helvetica, clean, sans-serif; font-size: 17px; line-height: 14px; "><strong style="font-style: inherit; font-weight: inherit; ">check_dhcp: send a REQUEST after receiving OFFERs - ID: 2968305</strong></span></div><div><font class="Apple-style-span" color="#555555" face="arial, helvetica, clean, sans-serif" size="5"><span class="Apple-style-span" style="font-size: 17px; line-height: 14px;"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; line-height: normal; "><a href="https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2968305&group_id=29880">https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2968305&group_id=29880</a></span></span></font></div><div><font class="Apple-style-span" color="#555555" face="arial, helvetica, clean, sans-serif" size="5"><span class="Apple-style-span" style="font-size: 17px; line-height: 14px;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: monospace; ">Initial Comment:</span></div><div><meta charset="utf-8"><span class="Apple-style-span" style="color: rgb(85, 85, 85); font-family: arial, helvetica, clean, sans-serif; font-size: 16px; ">Patch against Plugin Version (-V output): 1.4.14<br>Plugin Name: check_dhcp<br>Example Plugin Commandline: check_dhcp -i egiga0<br>Tested on operating system: linux<br>Tested on architecture: arm/freebsd/linux<br>Tested with compiler: gcc<br><br>Patch adds the sending of a DHCPREQUEST after receiving OFFERs. This allow<br>s DHCP servers to release any IPs allocated by the OFFER back to their free<br>pools immediately, rather than waiting for the offer to timeout. Some DHC<br>P servers hold these offers for a long time, and will happily issue a new I<br>P to the same device each time because the previous OFFER wasn't followed b<br>y a subsequent broadcast/unicast REQUEST. This could lead to an exhaustion<br>of IP addresses from the DHCP server's free pool on some implementations.</span></div><div><font class="Apple-style-span" color="#555555" face="arial, helvetica, clean, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px;"><br></span></font></div><div><font class="Apple-style-span" color="#555555" face="arial, helvetica, clean, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px;"><meta charset="utf-8"><span class="Apple-style-span" style="color: rgb(0, 0, 0); border-collapse: collapse; font-weight: bold; line-height: 13px; "><b>Filename</b></span></span></font></div><div><font class="Apple-style-span" color="#555555" face="arial, helvetica, clean, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px;"><meta charset="utf-8"><span class="Apple-style-span" style="color: rgb(94, 94, 94); font-size: 17px; border-collapse: collapse; line-height: 14px; ">check_dhcp.patch</span></span></font></div><div><font class="Apple-style-span" color="#5E5E5E" face="arial, helvetica, clean, sans-serif" size="5"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 17px; line-height: 14px;"><br></span></font></div><div><font class="Apple-style-span" color="#5E5E5E" face="arial, helvetica, clean, sans-serif" size="5"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 17px; line-height: 14px;"><br></span></font></div><div><font class="Apple-style-span" color="#555555" face="arial, helvetica, clean, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px;"><meta charset="utf-8"><span class="Apple-style-span" style="color: rgb(0, 0, 0); border-collapse: collapse; font-weight: bold; line-height: 13px; "><b>Description</b></span></span></font></div><div><font class="Apple-style-span" color="#555555" face="arial, helvetica, clean, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 16px;"><meta charset="utf-8"><span class="Apple-style-span" style="color: rgb(94, 94, 94); font-size: 17px; border-collapse: collapse; line-height: 14px; ">Send a DHCP REQUEST after receiving OFFERs, marking our own address as SERVER IDENTIFIER in DHCP OPTIONS, tidy some tabs</span></span></font></div></body></html>