check_dhcp
Andreas Ericsson
ae at op5.se
Wed Oct 19 15:55:09 CEST 2005
chown root:nagios check_dhcp
chmod 4710 check_dhcp
"check your privileges" is supposed to be a hint.
Richard Gliebe wrote:
> Hi there,
>
> I have a problem with the check_dhcp plugin.
>
> When I run it from commandline as root if works fine.
>
> [...]
> # ./check_dhcp -i bge0
> DHCP ok: Received 1 DHCPOFFER(s), max lease time = 3600 sec
> [...]
>
> But running from Nagios it failes:
>
> [...]
> Error: Could not bind to DHCP socket (port 68)! Check your
> privileges...
> [...]
>
> The Nagios processes are running as user "nagios".
> # id nagios
> uid=1001(nagios) gid=1001(nagios) groups=1001(nagios), 80(www)
>
> Here is my checkcommands.cfg:
> # 'check_dhcp' command definition
> define command{
> command_name check_dhcp
> command_line $USER1$/check_dhcp -i $ARG1$
> }
>
> and my service definition:
> #define service{
> use generic-service
> host_name my.hostname.com
> service_description DHCP
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 3
> retry_check_interval 1
> contact_groups sys-admins
> notification_interval 0
> notification_period 24x7
> notification_options w,u,c,r
> check_command check_dhcp!bge0
> }
>
>
> We are running Nagios Version 2.0b3 on FreeBSD 5.4-STABLE
>
> thanks in advance
> Richard
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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