LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-26-2009, 01:16 AM   #1
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Rep: Reputation: 30
Unhappy 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
 
Old 06-27-2009, 10:02 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 79
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.

Last edited by bsdunix; 06-27-2009 at 10:04 AM.
 
Old 06-29-2009, 01:54 PM   #3
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bsdunix View Post
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
 
Old 06-29-2009, 05:46 PM   #4
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Talking

Quote:
Originally Posted by deibertine View Post
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.
 
  


Reply

Tags
nagios, plugins


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix issue ; Must issue a STARTTLS command first after forcing TLS sarajevo Linux - Server 3 05-14-2009 09:28 AM
Trouble mounting ipod. Hal issue and mount point issue. okos Slackware 2 05-11-2009 12:51 AM
Ffmpeg and Xing header - iTunes issue and Duration issue JavaNinja Linux - Software 7 02-04-2009 10:14 AM
SuSE10.2 networking issue Inter. connect. issue LVSuSE Linux - Networking 3 08-31-2007 03:42 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 02:10 PM


All times are GMT -5. The time now is 09:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration