DHCP win

Mark Ferlatte ferlatte at cryptio.net
Sun Jan 26 21:41:21 CET 2003


Justin said on Sat, Jan 25, 2003 at 09:30:43PM -0600:
> Jan 25 22:17:49 whodevil nagios: SERVICE ALERT:
> Collins-DHCP;DHCP;UNKNOWN;HARD;3;Error: Could not bind to DHCP socket (port
> 68)!  Check your privileges...
> 
> I am basically using the commands as if from CLI.  It worked from CLI as you
> see above, but returns this error.  Can you see anything I am doing wrong?
> I searched the archive and found helpfull information, but could not find a
> resolution to my particular problem.  Thanks

The plugin needs permission to bind to port 68 (ie, needs to be running
as root).  When you ran it from the command line, it was running as
root, and therefor worked.  Your nagios installation probably isn't
running as root, and therefor the plugin isn't either.

Perhaps you could work around this by making the check_dhcp plugin SUID
root, and only executable by the nagios group?  This would help prevent
possible security issues in the check_dhcp plugin, but would allow it to
bind to port 68.

M
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030126/9deb66b8/attachment.sig>


More information about the Users mailing list