<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I got it working! <br><br>I had to create a separate check command definition and specified $USER1$/check_dhcp <span style="font-style: italic;">"IP Address"</span><br><br>Now Nagios is happy! <br><br>OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec. <br><br>Thanks.<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dei Bertine <deibertine@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> Edgar Matzin
 ger <Edgar.Matzinger@valid.nl><br><b><span style="font-weight: bold;">Cc:</span></b> "nagios-users@lists.sourceforge.net"
 <nagios-users@lists.sourceforge.net><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, June 29, 2009 12:08:53 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users] check_dhcp issue<br></font><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>I actually tried     check_command      check_dhcp Without !/check_dh....! but still error. <br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Having an ip address didnt make a difference. <br>Also chmod (u+s) on the plugin but that didnt help either. <br>Dont you think it had something to do with the fact that this particular server is a slave dhcp?<br> <br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Edgar Matzinger <Edgar.Matzinger@valid.nl><br><b><span style="font-weight: bold;">To:</span></b> Dei Bertine &l
 t;deibertine@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b>
 "nagios-users@lists.sourceforge.net" <nagios-users@lists.sourceforge.net><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, June 26, 2009 3:47:06 AM<br><b><span style="font-weight: bold;">Subject:</span></b> RE: [Nagios-users] check_dhcp issue<br></font><br>
LS,<br><br>Dei scribbled on 2009-06-26:<br><br>> Ok, here's my definition in services:<br>> <br>> define service{<br>>         use                   local-service<br>>         host_name             <a rel="nofollow" target="_blank" href="http://serveip1.dev.net">serveip1.dev.net</a><br>>         service_description   check_dhcp<br>>         check_command         check_dhcp!/check_dhcp -s $HOSTADDRESS$<br>> }<br><br>the command_line should be:<br><br>    check_command      check_dhcp<br><br>Without !/check_dh....!<br><br>> <br>> Here's my command.cfg:<br>> 
 define command{<br>>         command_name    check_dhcp<br>>         command_line   
 $USER1$/check_dhcp -s
 $HOSTADDRESS$<br>>         }<br><br>In your examples from a few posts ago, you specify a *hostname*. In<br>your service description, an *IP address*. Does that make any difference?<br><br>HTH, cu l8r, Edgar.<br>-- <br>    |\  /| :                                : Addr: Valid Eindhoven B.V.<br> /  | \/ | :     Edgar R. Matzinger         :       t.a.v. E.R. Matzinger<br>/   |    | :                                :       Flight Forum 565<br>\  /|  /\| :                
                 :       5657DR Eindhoven<br> \/   /  \ :     Valid Eindhoven BV   
      :<br>  \  /\  / :                                :<br>   \/ |\/  :                                :<br>      |    :                                :<br>Disclaimer: Any comments, opinions made are mine, etc ... <br><br></div></div></div><br>



      </div></div></div><br>



      </body></html>