<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">After an incident we have been tasked with detecting rogue DHCP servers on our network. Looking at the check_dhcp plugin it looks like it does 99% of what we need. My specific question relates to us making a change to the check_dhcp.c file
 and if it would work. My co-worker and I are not familiar enough with the language.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For the section:<o:p></o:p></p>
<p class="MsoNormal">               if(valid_responses==0)<o:p></o:p></p>
<p class="MsoNormal">                                result=STATE_CRITICAL;<o:p></o:p></p>
<p class="MsoNormal">                else if(requested_servers>0 && requested_responses==0)<o:p></o:p></p>
<p class="MsoNormal">                                result=STATE_CRITICAL;<o:p></o:p></p>
<p class="MsoNormal">                else if(requested_responses<requested_servers)<o:p></o:p></p>
<p class="MsoNormal">                                result=STATE_WARNING;<o:p></o:p></p>
<p class="MsoNormal">                else if(request_specific_address==TRUE && received_requested_address==FALSE)<o:p></o:p></p>
<p class="MsoNormal">                                result=STATE_WARNING;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If we were to add this after the first if<o:p></o:p></p>
<p class="MsoNormal">                Else if (valid_responses>1)<o:p></o:p></p>
<p class="MsoNormal">                                Result=STATE_CRITICAL;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then compile the plugin per the github instructions from there would that alert if we had more than one DHCP response?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="550" style="width:412.5pt">
<tbody>
<tr>
<td width="90" style="width:67.5pt;background:white;padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial",sans-serif"><img width="80" height="80" style="width:.8333in;height:.8333in" id="Picture_x0020_1" src="cid:image002.png@01D44A9B.3F2877B0" alt="Aaron Webber"><o:p></o:p></span></p>
</td>
<td width="460" style="width:345.0pt;background:white;padding:0in 0in 0in 2.25pt">
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Aaron Webber</span></b><span style="font-size:10.5pt;font-family:"Arial",sans-serif"> | Security Systems Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><a href="mailto:awebber@insidesales.com"><span style="color:blue">awebber@insidesales.com</span></a> | P: 877.210.0126 | F: 801.853.4089</span></b><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:10.5pt"><span style="font-size:8.5pt;font-family:"Arial",sans-serif"><a href="http://linkedin.com/company/82914"><span style="color:blue">LinkedIn</span></a>  |  <a href="http://www.insidesales.com/about-us/customers#/?a=sig111"><span style="color:blue">Customer
 Testimonials</span></a>  |  <a href="https://www.youtube.com/user/officialinsidesales"><span style="color:blue">Sales Rep Best Practices</span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>