<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Ok did that but still error:<br>root@tool:/usr/local/nagios/libexec# chmod 4755 ./check_dhcp<br>root@tool:/usr/local/nagios/libexec# ls -als check_dhcp<br>76 -rwsr-xr-x 1 nagios nagios 72834 2009-04-26 21:06 check_dhcp<br>nagios@tool:~/libexec$ ./check_dhcp -s serveip1<br>Error: Could not bind socket to interface eth0. Check your privileges...<br><br>Any other ideas?<br><br>Thanks. <br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">F
rom:</span></b> Andreas Ericsson <ae@op5.se><br><b><span style="font-weight: bold;">To:</span></b> Dei Bertine <deibertine@yahoo.com><br><b><span
style="font-weight: bold;">Cc:</span></b> nagios-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, June 25, 2009 10:43:13 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users] check_dhcp issue<br></font><br>
Dei Bertine wrote:<br>> Hi all,<br>> <br>> I need to monitor our dhcp server and came to see the check_dhcp plugin.<br>> <br>> However I'm getting this error when initiating the command:<br>> <br>> nagios@tool:~/libexec$ ./check_dhcp -s serveip1<br>> Error: Could not bind socket to interface eth0. Check your privileges...<br>> <br>> But when I am on root, I get this: root@tool:/usr/local/nagios/libexec# ./check_dhcp -s serveip1<br>> OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec<br>> <br>> ls -als on check_dhcp:<br>> 76 -rwxr-xr-x 1 nagios nagios 72834 2009-04-27 13:06 check_dhcp<br>> <br>> Do I need to do something like set permissions on serveip1 server? <br>> Please advise.<br>> <br><br>As root on your nagios server:<b
r>chmod 4755 ./check_dhcp<br><br>-- Andreas Ericsson <a ymailto="mailto:andreas.ericsson@op5.se"
href="mailto:andreas.ericsson@op5.se">andreas.ericsson@op5.se</a><br>OP5 AB <a target="_blank" href="http://www.op5.se">www.op5.se</a><br>Tel: +46 8-230225 Fax: +46 8-230231<br><br>Considering the successes of the wars on alcohol, poverty, drugs and<br>terror, I think we should give some serious thought to declaring war<br>on peace.<br></div></div></div><br>
</body></html>