<br><font size=2 face="sans-serif">Still not working:</font>
<br>
<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">Error: Could not bind socket to interface
eth0.  Check your privileges...</font>
<br><font size=2 face="sans-serif">root@nagios:/usr/lib/nagios/plugins#
ll -lsa check_dhcp</font>
<br><font size=2 face="sans-serif">36 <b>-rwsrwxrwx</b> 1 root root 34344
2010-02-04 07:09 check_dhcp*<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><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>mfranke@westpac.com.au </font><font size=1 color=red face="Lucida Sans">|
<b>W</b> </font><font size=1 color=#808080 face="Lucida Sans">www.westpac.com.au</font><font size=1 color=#a2a2a2 face="Lucida Sans">
</font><font size=1 color=red face="Lucida Sans">|</font>
<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><font size=3> </font>
<p><font size=3> </font>
<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><font size=3> </font>
<p><font size=3> </font>
<p><font size=3> </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Ton Voon <tonvoon@gmail.com></b>
</font>
<p><font size=1 face="sans-serif">01/04/2011 03:01 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Nagios Plugin Development Mailing List        <nagiosplug-devel@lists.sourceforge.net></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Nagios Plugin Development Mailing List
<nagiosplug-devel@lists.sourceforge.net></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagiosplug-devel] ./check_dhcp
in Nagios</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>You need the root setuid flag: chmod u+s check_dhcp</font>
<br>
<br>
<br><font size=3>On 31 Mar 2011, at 01:26, Markus Franke wrote:</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Hi, I am trying to use the "check_dhcp" pluggin to check dhcp
leases, etc. on production servers.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
 I keep getting the following error:</font><font size=3> </font><font size=2 face="sans-serif"><br>
 </font><font size=3> </font><font size=2 face="sans-serif"><br>
root@nagios:/usr/lib/nagios/plugins# ./check_dhcp -v</font><font size=3>
</font><font size=2 face="sans-serif"><br>
DHCP socket: 3</font><font size=3> </font><font size=2 face="sans-serif"><b><br>
Error: Could not bind socket to interface eth0.  Check your privileges...</b></font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
 After ensuring the permissions are set correctly (-rwxrwxrwx 1 root root
34344 2010-02-04 07:09 check_dhcp* )</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
 and attempting to run the binary executable from to root account, I still
get the same error.</font><font size=3> </font><font size=2 face="sans-serif"><br>
 What else can I check ?</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
Note: Nagios pluggins are running the following level:</font><font size=3>
</font><font size=2 face="sans-serif"><br>
 ./check_tcp -V</font><font size=3> </font><font size=2 face="sans-serif"><br>
check_tcp v1.4.14 (nagios-plugins 1.4.14)</font><font size=3> </font><font size=2 face="sans-serif"><br>
root@nagios:/usr/lib/nagios/plugins#</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><font size=3>
</font>
<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></font><a href=mailto:mfranke@westpac.com.au><font size=1 color=blue face="Lucida Sans"><u>mfranke@westpac.com.au</u></font></a><font size=1 color=#808080 face="Lucida Sans">
</font><font size=1 color=red face="Lucida Sans">| <b>W</b> </font><a href=http://www.westpac.com.au/><font size=1 color=blue face="Lucida Sans"><u>www.westpac.com.au</u></font></a><font size=1 color=#a2a2a2 face="Lucida Sans">
</font><font size=1 color=red face="Lucida Sans">|</font><font size=3>
</font>
<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><font size=3>
</font>
<p><font size=3>  </font>
<br><font size=3>  </font>
<p><font size=1 color=#a2a2a2 face="Webdings">QP </font><font size=1 color=#a2a2a2 face="Lucida Sans">Please
consider the environment before printing this email </font>
<p><font size=3>  </font>
<br><font size=3>  </font>
<p><font size=3>  <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 </font><a href=http://westpac.com.au/wibinfo><font size=3 color=blue><u>westpac.com.au/wibinfo</u></font></a><font size=3><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. </font><a href="http://p.sf.net/sfu/ms-webmatrix-sf"><font size=3 color=blue><u>http://p.sf.net/sfu/ms-webmatrix-sf</u></font></a><font size=3><br>
_______________________________________________________<br>
Nagios Plugin Development Mailing List </font><a href="mailto:Nagiosplug-devel@lists.sourceforge.net"><font size=3 color=blue><u>Nagiosplug-devel@lists.sourceforge.net</u></font></a><font size=3><br>
Unsubscribe at </font><a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel"><font size=3 color=blue><u>https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel</u></font></a><font size=3><br>
::: Please include plugins version (-v) and OS when reporting any issue.
<br>
::: Messages without supporting info will risk being sent to /dev/null</font>
<p><tt><font size=2>------------------------------------------------------------------------------<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. http://p.sf.net/sfu/ms-webmatrix-sf<br>
_______________________________________________________<br>
Nagios Plugin Development Mailing List Nagiosplug-devel@lists.sourceforge.net<br>
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel<br>
::: Please include plugins version (-v) and OS when reporting any issue.
<br>
::: Messages without supporting info will risk being sent to /dev/null</font></tt>
<p>
<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 westpac.com.au/wibinfo<BR>