[Nagiosplug-devel] ./check_dhcp in Nagios
Olivier 'Babar' Raginel
nagios at babar.us
Fri Apr 1 08:01:14 CEST 2011
On Fri, Apr 01, 2011 at 10:09:39AM +1100, Markus Franke wrote:
> Still not working:
>
> root at nagios:/usr/lib/nagios/plugins# ./check_dhcp -v
> DHCP socket: 3
> Error: Could not bind socket to interface eth0. Check your privileges...
> root at nagios:/usr/lib/nagios/plugins# ll -lsa check_dhcp
> 36 -rwsrwxrwx 1 root root 34344 2010-02-04 07:09 check_dhcp*
Maybe you have some Mandatory Access Control, like AppArmor or SElinux,
which prevents you to do it even with the right parameters.
To check for SElinux, you should be able to use: getenforce.
Otherwise check your logs, like /var/log/audit/* and the like, just when
you do it.
HTH,
--
Babar.
More information about the Devel
mailing list