<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You need the root setuid flag: chmod u+s check_dhcp<div><br></div><div><br><div><div>On 31 Mar 2011, at 01:26, Markus Franke wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<br><font size="2" face="sans-serif"><br>
</font><font size="1" color="#808080" face="Verdana"> </font>
<br><font size="2" face="sans-serif">Hi, I am trying to use the "check_dhcp"
pluggin to check dhcp leases, etc. on production servers.</font>
<br>
<br><font size="2" face="sans-serif"> I keep getting the following error:</font>
<br><font size="2" face="sans-serif"> </font>
<br><font size="2" face="sans-serif">root@nagios:/usr/lib/nagios/plugins#
./check_dhcp -v</font>
<br><font size="2" face="sans-serif">DHCP socket: 3</font>
<br><font size="2" face="sans-serif"><b>Error: Could not bind socket to interface
eth0. Check your privileges...</b></font>
<br>
<br><font size="2" face="sans-serif"> After ensuring the permissions
are set correctly (-rwxrwxrwx 1 root root 34344 2010-02-04 07:09 check_dhcp*
)</font>
<br>
<br><font size="2" face="sans-serif"> and attempting to run the binary
executable from to root account, I still get the same error.</font>
<br><font size="2" face="sans-serif"> What else can I check ?</font>
<br>
<br>
<br><font size="2" face="sans-serif">Note: Nagios pluggins are running the
following level:</font>
<br><font size="2" face="sans-serif"> ./check_tcp -V</font>
<br><font size="2" face="sans-serif">check_tcp v1.4.14 (nagios-plugins 1.4.14)</font>
<br><font size="2" face="sans-serif">root@nagios:/usr/lib/nagios/plugins#<br>
</font><font size="1" color="#808080" face="Verdana"> </font><p><font size="1" color="#808080" face="Lucida Sans"><b>Markus Franke </b></font><font size="3" color="red">|</font><font size="1" color="red" face="Lucida Sans">
</font><font size="1" color="#808080" face="Lucida Sans">Senior Network Engineer,
Telecommunications Services </font><font size="1" color="red" face="Lucida Sans">|</font><font size="1" color="white" face="Lucida Sans"><b>
</b></font><font size="1" color="#808080" face="Lucida Sans">THE WESTPAC GROUP</font><font size="1" color="#a2a2a2" face="Lucida Sans"><b>
</b></font><font size="1" color="red" face="Lucida Sans">|</font>
</p><p><font size="1" color="red" face="Lucida Sans"><b>P</b></font><font size="1" color="#a2a2a2" face="Lucida Sans"><b>
</b></font><font size="1" color="#808080" face="Lucida Sans">02 8253 (2) 3164
</font><font size="1" color="red" face="Lucida Sans">| <b>M </b></font><font size="1" color="#808080" face="Lucida Sans">0409
612 643</font><font size="1" color="red" face="Lucida Sans"> | <b>E</b></font><font size="1" color="#808080" face="Lucida Sans"><b>
</b><a href="mailto:mfranke@westpac.com.au">mfranke@westpac.com.au</a> </font><font size="1" color="red" face="Lucida Sans">|
<b>W</b> </font><font size="1" color="#808080" face="Lucida Sans"><a href="http://www.westpac.com.au">www.westpac.com.au</a></font><font size="1" color="#a2a2a2" face="Lucida Sans">
</font><font size="1" color="red" face="Lucida Sans">|</font>
</p><p><font size="1" color="#808080" face="Lucida Sans">Westpac Banking Corporation,
Level 25, 275 Kent Street, SYDNEY NSW 2000 </font><font size="1" color="red" face="Lucida Sans">|</font>
</p><div><font size="3"> </font>
<br class="webkit-block-placeholder"></div><div><font size="3"> </font>
<br class="webkit-block-placeholder"></div><p><font size="1" color="#a2a2a2" face="Webdings">QP</font><font size="1" color="#a2a2a2" face="Webdings">
</font><font size="1" color="#a2a2a2" face="Lucida Sans">Please consider the
environment before printing this email </font>
</p><div><font size="3"> </font>
<br class="webkit-block-placeholder"></div><div><font size="3"> </font>
<br class="webkit-block-placeholder"></div><p><font size="3"> </font>
<br>
Unless otherwise stated, this email is confidential. If received in error, please delete and inform the sender by return email. Unauthorised use, copying or distribution is prohibited. Westpac Banking Corporation (ABN 33 007 457 141) is not responsible for viruses, or for delays, errors or interception in transmission. Unless stated or apparent from its terms, any opinion is not the opinion of Westpac Banking Corporation. This message also includes information on Westpac Institutional Bank available at <a href="http://westpac.com.au/wibinfo">westpac.com.au/wibinfo</a><br>
------------------------------------------------------------------------------<br>Create and publish websites with WebMatrix<br>Use the most popular FREE web apps or write code yourself; <br>WebMatrix provides all the features you need to develop and <br>publish your website. <a href="http://p.sf.net/sfu/ms-webmatrix-sf">http://p.sf.net/sfu/ms-webmatrix-sf</a><br>_______________________________________________________<br>Nagios Plugin Development Mailing List <a href="mailto:Nagiosplug-devel@lists.sourceforge.net">Nagiosplug-devel@lists.sourceforge.net</a><br>Unsubscribe at <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel">https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel</a><br>::: Please include plugins version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null</p></blockquote></div><br></div></body></html>