LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   check_dhcp issue (https://www.linuxquestions.org/questions/linux-networking-3/check_dhcp-issue-735718/)

deibertine 06-26-2009 12:16 AM

check_dhcp issue
 
Hi all,

I need to monitor our dhcp server and came to see the check_dhcp plugin.

However I'm getting this error when initiating the command:

nagios@tool:~/libexec$ ./check_dhcp -s serveip1
Error: Could not bind socket to interface eth0. Check your privileges...

But when I am on root, I get this:
root@tool:/usr/local/nagios/libexec# ./check_dhcp -s serveip1
OK: Received 1 DHCPOFFER(s), max lease time = 86400 sec

ls -als on check_dhcp:
76 -rwxr-xr-x 1 nagios nagios 72834 2009-04-27 13:06 check_dhcp

Do I need to do something like set permissions on serveip1 server?

Please advise. :(

Thanks!
DB

bsdunix 06-27-2009 09:02 AM

Nagios Plugin - Check_dhcp
http://www.cyberpro.com.au/Tips_n_Tr..._Check%11dhcp/

You can follow what the article says to do, but my recommendation is to use sudo as using sticky bits can possibly be a security risk.

deibertine 06-29-2009 12:54 PM

Quote:

Originally Posted by bsdunix (Post 3588046)
Nagios Plugin - Check_dhcp
http://www.cyberpro.com.au/Tips_n_Tr..._Check%11dhcp/

You can follow what the article says to do, but my recommendation is to use sudo as using sticky bits can possibly be a security risk.


I did the above steps but now getting this error in the Nagios page:

CRITICAL: Received 1 DHCPOFFER(s), 0 of 1 requested servers responded, max lease time = 86400 sec.

Please advise... :(

DB

deibertine 06-29-2009 04:46 PM

Quote:

Originally Posted by deibertine (Post 3590361)
I did the above steps but now getting this error in the Nagios page:

CRITICAL: Received 1 DHCPOFFER(s), 0 of 1 requested servers responded, max lease time = 86400 sec.

Please advise... :(

DB

I got this working!

What I did was I created a separate check command definition and reinstated $USER1$/check_dhcp "IP ADDRESS"

Now Nagios is absolutely happy with this change. :-)

DB. :D


All times are GMT -5. The time now is 04:59 PM.