[Nagiosplug-devel] ./check_dhcp in Nagios

Markus Franke mfranke at westpac.com.au
Fri Apr 1 01:09:39 CEST 2011


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*
 
Markus Franke | Senior Network Engineer, Telecommunications Services | THE 
WESTPAC GROUP |
P 02 8253 (2) 3164 | M 0409 612 643 | E mfranke at westpac.com.au | W 
www.westpac.com.au |
Westpac Banking Corporation, Level 25, 275 Kent Street, SYDNEY NSW 2000 |
 
 
QP Please consider the environment before printing this email 
 
 
 



Ton Voon <tonvoon at gmail.com> 
01/04/2011 03:01 AM
Please respond to
Nagios Plugin Development Mailing List 
<nagiosplug-devel at lists.sourceforge.net>


To
Nagios Plugin Development Mailing List 
<nagiosplug-devel at lists.sourceforge.net>
cc

Subject
Re: [Nagiosplug-devel] ./check_dhcp in Nagios






You need the root setuid flag: chmod u+s check_dhcp


On 31 Mar 2011, at 01:26, Markus Franke wrote:




Hi, I am trying to use the "check_dhcp" pluggin to check dhcp leases, etc. 
on production servers. 

 I keep getting the following error: 
  
root at nagios:/usr/lib/nagios/plugins# ./check_dhcp -v 
DHCP socket: 3 
Error: Could not bind socket to interface eth0.  Check your privileges... 

 After ensuring the permissions are set correctly (-rwxrwxrwx 1 root root 
34344 2010-02-04 07:09 check_dhcp* ) 

 and attempting to run the binary executable from to root account, I still 
get the same error. 
 What else can I check ? 


Note: Nagios pluggins are running the following level: 
 ./check_tcp -V 
check_tcp v1.4.14 (nagios-plugins 1.4.14) 
root at nagios:/usr/lib/nagios/plugins#
Markus Franke | Senior Network Engineer, Telecommunications Services | THE 
WESTPAC GROUP | 
P 02 8253 (2) 3164 | M 0409 612 643 | E mfranke at westpac.com.au | W 
www.westpac.com.au | 
Westpac Banking Corporation, Level 25, 275 Kent Street, SYDNEY NSW 2000 | 
 
 
QP Please consider the environment before printing this email 
 
 
 
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
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________________
Nagios Plugin Development Mailing List 
Nagiosplug-devel at lists.sourceforge.net
Unsubscribe at 
https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________________
Nagios Plugin Development Mailing List 
Nagiosplug-devel at lists.sourceforge.net
Unsubscribe at 
https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20110401/1b18af57/attachment.html>


More information about the Devel mailing list