Problem with Check_DHCP
Fotios Magoufis
fmagoufis at furniture.com
Mon Oct 17 16:46:33 CEST 2005
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas
Ericsson
Sent: Monday, October 17, 2005 10:24 AM
To: Nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Problem with Check_DHCP
Please don't top-post. It's terribly annoying. Also keep in mind that it
helps a lot if you post some command output rather than trying to tell us
all how you think things are set up.
Fotios Magoufis wrote:
> Yes, I ran it as root and still no success. If I execute the command
> as root, it works fine.
>
Nagios doesn't run check_dhcp as root then, no matter what you chmod'ed it
too.
Does your ls -l output look something like this?
# ls -l check_dhcp
-rwsr-xr-x 1 root root 19876 Jun 30 19:03 check_dhcp
The important part here is the first s and that the owner is root.
Is the plugin located on a partition mounted with the nosuid option?
Is SELinux enabled and stripping suid binaries of their privileges?
Is check_dhcp a symlink somewhere, and were you daft enough to chmod the
symlink rather than the actual file?
Does the directory where check_dhcp resides have the suid bit set?
Try this;
chown root:root check_dhcp
chmod 4711 check_dhcp
Did it work?
Everything worked like a charm, I completely forgot to set the ownership to
root.
>
> Fotios Magoufis | Operations Manager
> Furniture.com | 85 River Street Waltham, MA 02453 | 781-693-2131
>
> -----Original Message-----
> From: Andreas Ericsson [mailto:ae at op5.se]
> Sent: Monday, October 17, 2005 10:04 AM
> To: Fotios Magoufis
> Cc: Nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Problem with Check_DHCP
>
> Fotios Magoufis wrote:
>
>>I've been having such a hard time getting the check_dhcp to work, but
>>I still can't figure it out. When the service runs as the nagios
>>user, I get the following error:
>>
>>Error: Could not bind socket to interface eth0. Check your privileges.
>>
>>I tried setting chmod +s check_dhcp, but it did not have any positive
>>effect.
>>
>>Any ideas on how to fix?
>>
>
>
> I suppose you did chmod +s check_dhcp as root, right?
>
> Does it work when you run it as root from the console?
>
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3036 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051017/9c02a328/attachment.bin>
More information about the Users
mailing list