I got it working! I had to create a separate check command definition and specified $USER1$/check_dhcp "IP Address"
Now Nagios is happy! OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec. Thanks. ________________________________ From: Dei Bertine <deibert...@yahoo.com> To: Edgar Matzinger <edgar.matzin...@valid.nl> Cc: "nagios-users@lists.sourceforge.net" <nagios-users@lists.sourceforge.net> Sent: Monday, June 29, 2009 12:08:53 PM Subject: Re: [Nagios-users] check_dhcp issue I actually tried check_command check_dhcp Without !/check_dh....! but still error. Having an ip address didnt make a difference. Also chmod (u+s) on the plugin but that didnt help either. Dont you think it had something to do with the fact that this particular server is a slave dhcp? ________________________________ From: Edgar Matzinger <edgar.matzin...@valid.nl> To: Dei Bertine <deibert...@yahoo.com> Cc: "nagios-users@lists.sourceforge.net" <nagios-users@lists.sourceforge.net> Sent: Friday, June 26, 2009 3:47:06 AM Subject: RE: [Nagios-users] check_dhcp issue LS, Dei scribbled on 2009-06-26: > Ok, here's my definition in services: > > define service{ > use local-service > host_name serveip1.dev.net > service_description check_dhcp > check_command check_dhcp!/check_dhcp -s $HOSTADDRESS$ > } the command_line should be: check_command check_dhcp Without !/check_dh....! > > Here's my command.cfg: > define command{ > command_name check_dhcp > command_line $USER1$/check_dhcp -s $HOSTADDRESS$ > } In your examples from a few posts ago, you specify a *hostname*. In your service description, an *IP address*. Does that make any difference? HTH, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Flight Forum 565 \ /| /\| : : 5657DR Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ...
------------------------------------------------------------------------------
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null