<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I don't personally use it (yet). I have just yesterday started using
nsca which does the check and then sends the result to nagios. Either
way what you need is around here <a class="moz-txt-link-freetext" href="http://www.nagios.org/download/">http://www.nagios.org/download/</a> (what
used to be a brief intro to these two things now just links here it
seems).  Perhaps docs are included...<br>
<br>
-h<br>
<br>
<pre class="moz-signature" cols="72">Hari Sekhon
</pre>
<br>
<br>
Antonio Pereira wrote:
<blockquote
 cite="mid0CA4ED2DD473424883BF20CCD45C18A3165591@mtlexchange.Duocom.local"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (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;}
@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:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
  </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]-->
  <div class="Section1">
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">What
command do you use for
nrpe? Can you direct me to any docs about how I can monitor dhcp using
nrpe.<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Can nrpe
monitor wins as well?<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">thanks<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <div>
  <div
 style="border-style: solid none none; border-color: rgb(145, 192, 255) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 9pt; font-family: "Segoe UI","sans-serif"; color: windowtext;">From:</span></b><span
 style="font-size: 9pt; font-family: "Segoe UI","sans-serif"; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>
[<a class="moz-txt-link-freetext" href="mailto:nagios-users-bounces@lists.sourceforge.net">mailto:nagios-users-bounces@lists.sourceforge.net</a>] <b>On Behalf Of </b>Hari
Sekhon<br>
  <b>Sent:</b> Wednesday, November 29, 2006 10:36 AM<br>
  <b>To:</b> Nagios Users mailinglist<br>
  <b>Subject:</b> Re: [Nagios-users] DHCP<o:p></o:p></span></p>
  </div>
  </div>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">You need to run it as root. Add a sudo entry to
allow the
nagios user to run this plugin as root without password.<br>
  <br>
like so<br>
  <br>
nagios  mymachine=NOPASSWD: /usr/nagios/libexec/check_dhcp<br>
  <br>
then run the plugin with "sudo " in front of it.<br>
  <br>
-h<br>
  <br>
  <br>
  <br>
  <o:p></o:p></p>
  <pre>Hari Sekhon<o:p></o:p></pre>
  <p class="MsoNormal"><br>
  <br>
Antonio Pereira wrote: <o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Problem,</span><o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">When I
run the check_dhcp from the
command line on the nagios server I get a response. When I add it to
nagios
itself to monitor I get an error message on the web console. It cannot
get a
dhcp offer.</span><o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Any ideas?</span><o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
  <div>
  <div
 style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 9pt; font-family: "Segoe UI","sans-serif"; color: windowtext;">From:</span></b><span
 style="font-size: 9pt; font-family: "Segoe UI","sans-serif"; color: windowtext;">
  <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>
[<a href="mailto:nagios-users-bounces@lists.sourceforge.net">mailto:nagios-users-bounces@lists.sourceforge.net</a>]
  <b>On Behalf Of </b>Antonio Pereira<br>
  <b>Sent:</b> Wednesday, November 29, 2006 10:20 AM<br>
  <b>To:</b> Nagios Users mailinglist<br>
  <b>Subject:</b> Re: [Nagios-users] DHCP</span><o:p></o:p></p>
  </div>
  </div>
  <p class="MsoNormal"> <o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Thanks it
works</span><o:p></o:p></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
  <div>
  <div
 style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 9pt; font-family: "Segoe UI","sans-serif"; color: windowtext;">From:</span></b><span
 style="font-size: 9pt; font-family: "Segoe UI","sans-serif"; color: windowtext;">
  <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>
[<a href="mailto:nagios-users-bounces@lists.sourceforge.net">mailto:nagios-users-bounces@lists.sourceforge.net</a>]
  <b>On Behalf Of </b>Hari Sekhon<br>
  <b>Sent:</b> Wednesday, November 29, 2006 10:14 AM<br>
  <b>To:</b> Nagios Users mailinglist<br>
  <b>Subject:</b> Re: [Nagios-users] DHCP</span><o:p></o:p></p>
  </div>
  </div>
  <p class="MsoNormal"> <o:p></o:p></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;">either do
distributed monitoring
servers or do the checks on a host on each of those subnets. You can do
the
checks remotely using nrpe or nsca both of which allow the check to run
on the
remote host and the result to be used back on your nagios server.<br>
  <br>
-h<o:p></o:p></p>
  <pre>Hari Sekhon<o:p></o:p></pre>
  <p class="MsoNormal"><br>
  <br>
Antonio Pereira wrote: <o:p></o:p></p>
  <p class="MsoNormal">Hello,<o:p></o:p></p>
  <p class="MsoNormal"> <o:p></o:p></p>
  <p class="MsoNormal">Is there a way to monitor DHCP in remote
locations? <o:p></o:p></p>
  <p class="MsoNormal"> <o:p></o:p></p>
  <p class="MsoNormal">I have 4 sites in different cities. I presently
have Nagios
setup to work on one site. But I would like to be able to monitor the
other 3
sites.<o:p></o:p></p>
  <p class="MsoNormal"> <o:p></o:p></p>
  <p class="MsoNormal">Thanks<o:p></o:p></p>
  <p class="MsoNormal"> <o:p></o:p></p>
  <p class="MsoNormal"><span lang="FR-CA"> </span><o:p></o:p></p>
  <pre> <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre style="text-align: center;"><o:p> </o:p></pre>
  <pre style="text-align: center;">
<hr align="center" size="4" width="90%">

  </pre>
  <pre style="text-align: center;"><o:p> </o:p></pre>
  <pre style="text-align: center;"><o:p> </o:p></pre>
  <pre style="text-align: center;">  <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre> <o:p></o:p></pre>
  <pre>-------------------------------------------------------------------------<o:p></o:p></pre>
  <pre>Take Surveys. Earn Cash. Influence the Future of IT<o:p></o:p></pre>
  <pre>Join SourceForge.net's Techsay panel and you'll get the chance to share your<o:p></o:p></pre>
  <pre>opinions on IT & business topics through brief surveys - and earn cash<o:p></o:p></pre>
  <pre><a
 href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a><o:p></o:p></pre>
  <pre> <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre style="text-align: center;"><o:p> </o:p></pre>
  <pre style="text-align: center;">
<hr align="center" size="4" width="90%">

  </pre>
  <pre style="text-align: center;"><o:p> </o:p></pre>
  <pre style="text-align: center;"><o:p> </o:p></pre>
  <pre style="text-align: center;">  <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre style="text-align: center;"> <o:p></o:p></pre>
  <pre> <o:p></o:p></pre>
  <pre>_______________________________________________<o:p></o:p></pre>
  <pre>Nagios-users mailing list<o:p></o:p></pre>
  <pre><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><o:p></o:p></pre>
  <pre><a
 href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><o:p></o:p></pre>
  <pre>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <o:p></o:p></pre>
  <pre>::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></pre>
  <pre><o:p> </o:p></pre>
  <pre style="text-align: center;">
<hr align="center" size="4" width="90%">

  </pre>
  <pre><o:p> </o:p></pre>
  <pre>-------------------------------------------------------------------------<o:p></o:p></pre>
  <pre>Take Surveys. Earn Cash. Influence the Future of IT<o:p></o:p></pre>
  <pre>Join SourceForge.net's Techsay panel and you'll get the chance to share your<o:p></o:p></pre>
  <pre>opinions on IT & business topics through brief surveys - and earn cash<o:p></o:p></pre>
  <pre><a
 href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a><o:p></o:p></pre>
  <pre><o:p> </o:p></pre>
  <pre style="text-align: center;">
<hr align="center" size="4" width="90%">

  </pre>
  <pre><o:p> </o:p></pre>
  <pre>_______________________________________________<o:p></o:p></pre>
  <pre>Nagios-users mailing list<o:p></o:p></pre>
  <pre><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><o:p></o:p></pre>
  <pre><a
 href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><o:p></o:p></pre>
  <pre>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <o:p></o:p></pre>
  <pre>::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></pre>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a></pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
</body>
</html>