LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2007, 10:49 AM   #1
svenwinkle
LQ Newbie
 
Registered: Sep 2005
Location: north
Distribution: gentoo
Posts: 23

Rep: Reputation: 15
opennms and dhcp discovery


Hello,

I have submitted this question to the sourceforge mailing list for opennms, but it is not getting posted for some reason, so I'm posting it here in the event that someone here has run into this issue before:

I have recently deployed OpenNMS across a network, and all desired functions are working well except for the DHCP discovery. I have looked through the FAQ and through the discussion lists and have seen others mention this error. The suggested resolutions are to ensure that dhclient (or any form of dhcp) is not being used to obtain the OpenNMS server's IP address and to make sure that the MAC address of the OpenNMS server is listed in dhcpd-configuration.xml. I tried both of these resolutions and neither worked. I was originally running OpenNMS as a test on a Xen virtualization box but moved it onto it's own hardware to make sure that none of Xen's bridging was causing problems, but that did not solve the problem either.



The error I get in the capsd.log is:



2007-04-19 13:04:45,116 ERROR [Capsd Suspect Pool-fiber0] Poller: IO Exception during socket connection establishment with DHCP client daemon.

java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:129)

at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2213)

at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2226)

at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2694)

at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:761)

at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)

at org.opennms.netmgt.dhcpd.Poller.<init>(Poller.java:245)











I am currently running on Debian Etch with the following /etc/network/interfaces configuration:



# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).



# The loopback network interface

auto lo

iface lo inet loopback



# The primary network interface

allow-hotplug eth0

iface eth0 inet static







I have the correct IP/DNS/Gateway addresses configured in this file as well.



If I run ps -auwx and grep for dhclient or just dh nothing is returned.



I have tested 2 different boxes that are currently functional dhcp servers and neither of them are detected as dhcp servers in OpenNMS. I am currently running version 1.3.2.



Does anyone have any suggestions for me to try or is this looking like a bug?



My dhcpd-configuration.xml file looks like this:



<DhcpdConfiguration

port="5818"

macAddress="00:18:FE:1A:99:12"

myIpAddress="127.0.0.1"

extendedMode="false"

requestIpAddress="127.0.0.1">

</DhcpdConfiguration>





Thanks in advance for any assistance.



-Jeff
 
Old 04-25-2007, 03:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're really *much* better off on the mailing lists, only thing i could suggest, as an opennms user, is that isn't dhcp disabled in the services.xml file by default?
 
Old 04-25-2007, 09:26 AM   #3
svenwinkle
LQ Newbie
 
Registered: Sep 2005
Location: north
Distribution: gentoo
Posts: 23

Original Poster
Rep: Reputation: 15
I do have it enabled in the service-configuration.xml file. I didn't think I would get much response here to this particular question, it was just an act of desperation . Thanks for your response.
 
Old 04-25-2007, 10:47 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
I recently had a similar issue with Gentoo. It got solved after an update. Before that, I was able to get dhcp to work by using this command

dhcpcd eth0

There is a second command:

dhcpcd -H eth0

That should follow the first one but I never needed it because dhcp started functioning right after the first command.

Unfortunately, I had to reissue the command on each reboot.
 
  


Reply



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
Debian Sarge and OpenNMS ninjaz Linux - Server 2 10-02-2006 08:44 AM
problem installing opennms in fedoracore4 mamc Linux - Networking 6 03-31-2006 11:02 PM
opennms question riffe Linux - Networking 0 12-11-2005 11:23 PM
Installing opennms on Debian Sarge odd-geir Linux - Networking 1 10-16-2005 06:48 PM
Opennms on Debian not receiving notifications csross Linux - Software 0 03-16-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration