check_dhcp issue

Dei Bertine deibertine at yahoo.com
Fri Jun 26 11:15:04 CEST 2009


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$
        }

Here's my command.cfg:
define command{
        command_name    check_dhcp
        command_line    $USER1$/check_dhcp -s $HOSTADDRESS$
        }


Please advise. 



________________________________
From: Andreas Ericsson <ae at op5.se>
To: Dei Bertine <deibertine at yahoo.com>
Cc: nagios-users at lists.sourceforge.net
Sent: Friday, June 26, 2009 1:20:30 AM
Subject: Re: [Nagios-users] check_dhcp issue

Dei Bertine wrote:
> Ok some progress doing this command... :-)
> chown root:root check_dhcp && chmod 4755 check_dhcp
> 
> However, what's odd is when I launch the plugin command via cli I am ok:
> OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec.
> 
> But when I look at the nagios monitor page, I get this:
> CRITICAL: Received 1 DHCPOFFER(s), 0 of 1 requested servers responded, max lease time = 86400 sec. 
> 
> Any idea why? 

You're not running it with the exact same parameters from
Nagios and the command-line.

-- Andreas Ericsson                  andreas.ericsson at op5.se
OP5 AB                            www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090626/77800e25/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list