<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:x="urn:schemas-microsoft-com:office:excel" 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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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 bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Why are you specifying two IP addresses?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Frank<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> dhcp-users-bounces+frnkblk=iname.com@lists.isc.org [mailto:dhcp-users-bounces+frnkblk=iname.com@lists.isc.org] <b>On Behalf Of </b>Loren M. Lang<br><b>Sent:</b> Sunday, March 18, 2012 1:31 AM<br><b>To:</b> Users of ISC DHCP<br><b>Subject:</b> Re: Nagios plug-in for monitoring ISC DHCP<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 3/17/2012 6:11 PM, Joe Vitti wrote: <o:p></o:p></p><p class=MsoNormal>This should be possible. <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You setup the nagios server as a host with a service for check_dhcp in the nagios config. This will make it monitor itself. You might need the nrpe client setup as well.<o:p></o:p></p></div><p class=MsoNormal><br>I am using NRPE client, but only for checks that need to be run on remote servers like check_load.  For network protocols like DNS and DHCP, you can just generate the test packets straight from the Nagios server and test it like a real client!  Here's the command I have Nagios running:<br><br>/usr/bin/sudo /usr/lib/nagios/plugins/check_dhcp -s 192.168.1.5 -s 192.168.1.7 -i eth0<br><br>On the Nagios server, it returns this:<br><br>WARNING: Received 1 DHCPOFFER(s), only 1 of 2 requested servers responded, max lease time = 1800 sec.<br><br>But on a third-party server that doesn't run DHCP, I get this:<br><br>OK: Received 2 DHCPOFFER(s), 2 of 2 requested servers responded, max lease time = 1800 sec.<br><br>I'd prefer to have the Nagios server run the test and generate the packets directly rather than rely on a third-party to be up and do the test for Nagios.<br><br><br><o:p></o:p></p><div><div><div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:7.5pt;font-family:"Verdana","sans-serif"'>_______________________________________________________________</span></span><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif"'> <o:p></o:p></span></p><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#7F7F7F'>Joe Vitti</span></span><span style='font-size:13.5pt;font-family:"Verdana","sans-serif";color:#7D85F3'><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-style-span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#7F7F7F'>Network and Systems Administrator</span></span><span style='font-size:13.5pt;font-family:"Verdana","sans-serif";color:#7D85F3'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#7F7F7F'>GCInfotech | 2009 Summer Street | </span><span class=apple-style-span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#7D85F3'>Suite 302 | Stamford, CT 06905</span></span><span style='font-size:13.5pt;font-family:"Verdana","sans-serif";color:#7D85F3'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:gray'>p: 203.463.7209 | e: <a href="mailto:jvitti@gcinfotech.com">jvitti@gcinfotech.com</a></span><span style='font-size:13.5pt;font-family:"Verdana","sans-serif";color:#7D85F3'><o:p></o:p></span></p></div></div></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mar 17, 2012, at 9:07 PM, Loren M. Lang wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><p class=MsoNormal>I am using a Nagios plug-in called check_dhcp to monitor both my DHCP servers.  It works by broadcasting a DHCPDISCOVER message and monitoring any DHCPOFFERs.  It reports back a Warning status if not all DHCP servers respond and a Critical status if no one responds.  The problem I am having is that the Nagios server is running on the same hardware as one of the DHCP servers and it does not seem to respond to the DHCPDISCOVER.  I can successfully run the plug-in on a separate computer to get it to respond, but I'd like to test it from the same server running all the Nagios checks.  Is it possible to send a DHCPDISCOVER to the daemon running on the same computer without using a separate network card tied to the network?<br><br>-- <br>Loren M. Lang<br><a href="mailto:lorenl@north-winds.org">lorenl@north-winds.org</a><br><a href="http://www.north-winds.org/">http://www.north-winds.org/</a><br><br><br>Public Key: <a href="ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc">ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc</a><br>Fingerprint: 10A0 7AE2 DAF5 4780 888A  3FA4 DCEE BB39 7654 DE5B<br><br>_______________________________________________<br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a><o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>dhcp-users mailing list<o:p></o:p></pre><pre><a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><o:p></o:p></pre><pre><a href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a><o:p></o:p></pre><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>Loren M. Lang<o:p></o:p></pre><pre><a href="mailto:lorenl@north-winds.org">lorenl@north-winds.org</a><o:p></o:p></pre><pre><a href="http://www.north-winds.org/">http://www.north-winds.org/</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Public Key: <a href="ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc">ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc</a><o:p></o:p></pre><pre>Fingerprint: 10A0 7AE2 DAF5 4780 888A  3FA4 DCEE BB39 7654 DE5B<o:p></o:p></pre></div></body></html>