2 Replies Latest reply on Feb 27, 2009 10:31 AM by Angel Fdez

    Configuration Snmp with jopr - java.net.BindException: Addre

    Angel Fdez Newbie

      Hi all,

      First, many thanks for your work on Jopr.


      I have a problem with snmp configuration in jopr-agent-2.1.0.GA and jboss-4.0.2

      If i first start the jopr-agent-2.1.0.GA and then start jboss-4.0.2

      1) jopr-agent-2.1.0.GA
      2) jboss-4.0.2

      the log of jboss-4.0.2 shows this error:

      2009-02-26 18:44:39,965 jboss.web.deployment:war=invoker.war,id=-748460631 WebModule INFO [org.apache.catalina.loader.WebappLoader] Dual registration of jndi stream handler: factory already defined
      2009-02-26 18:44:40,935 jboss.web.deployment:war=jboss-ws4ee.war,id=1167061064 WebModule INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/export/home/jboss/jboss-4.0.2/server/all/tmp/deploy/tmp26515jboss-ws4ee.war/
      2009-02-26 18:44:42,789 jboss.jmx:name=SnmpAgent,service=trapd,type=logger TrapdService ERROR [org.jboss.jmx.adaptor.snmp.trapd.TrapdService] Cannot instantiate trap session
      2009-02-26 18:44:42,790 jboss.jmx:name=SnmpAgent,service=trapd,type=logger TrapdService ERROR [org.jboss.jmx.adaptor.snmp.trapd.TrapdService] Starting failed jboss.jmx:name=SnmpAgent,service=trapd,type=logger
      java.net.BindException: Address already in use
      at java.net.PlainDatagramSocketImpl.bind0(Native Method)
      at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
      at java.net.DatagramSocket.bind(DatagramSocket.java:368)
      at java.net.DatagramSocket.(DatagramSocket.java:210)
      at java.net.DatagramSocket.(DatagramSocket.java:261)
      at org.opennms.protocols.snmp.SnmpPortal.(SnmpPortal.java:256)



      If i first start the jboss-4.0.2 and then start jopr-agent-2.1.0.GA

      1) jboss-4.0.2
      2) jopr-agent-2.1.0.GA


      the jopr-agent-2.1.0.GA shows this errors, but jopr works ok.

      jboss@server # sending> java.net.BindException: Address already in use
      at java.net.PlainDatagramSocketImpl.bind0(Native Method)
      at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
      at java.net.DatagramSocket.bind(DatagramSocket.java:368)
      at java.net.DatagramSocket.(DatagramSocket.java:210)
      at java.net.DatagramSocket.(DatagramSocket.java:261)
      at org.snmp4j.transport.DefaultUdpTransportMapping.(Unknown Source)
      at org.rhq.plugins.snmptrapd.SnmpTrapdComponent.start(SnmpTrapdComponent.java:84)
      at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:450)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)




      can anybody help me to change the snmp configuration in jopr-agent-2.1.0.GA?

      I couldn't install another version of jboss-4.0.2, or change the config in jboss-4.0.2/server/all/deploy/snmp-adaptor.sar/managers.xml, so I must change the snmp ports 1161-1162 in jopr-agent-2.1.0.GA.

      Thanks.