<p>Merged patch from <a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/752" class="issue-link" title='check_dhcp: patch for "Rogue DHCP server detection" [sf#1854415]'>#752</a></p>

<p>Sample output with exclusive/desired mode (-x):</p>

<pre><code># second dhcp server is detected as rogue
./check_dhcp -s 192.168.1.1 -x
CRITICAL: Received 2 DHCPOFFER(s), Rogue DHCP Server detected! Server 192.168.1.2 offered 192.168.1.100

# support for multiple dhcp servers as well
./check_dhcp -s 192.168.1.1 -s 192.168.1.50 -x
CRITICAL: Received 2 DHCPOFFER(s), Rogue DHCP Server detected! Server 192.168.1.2 offered 192.168.1.100

# both dhcp servers are correct
./check_dhcp -s 192.168.1.1 -s 192.168.1.2 -x
OK: Received 2 DHCPOFFER(s), 2 of 2 requested servers responded, max lease time = 691200 sec.
</code></pre>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1375'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1375</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>* check_dhcp.c added patch from #752</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1375/files#diff-0">plugins-root/check_dhcp.c</a>
    (89)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1375.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1375.patch</a></li>
  <li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1375.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1375.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1375">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2byWdGQp3-kxoaxkNZ2Mo6Gcyyfzks5o5M1UgaJpZM4GKW0v.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1375"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>