Make sure that snmptrapd is not running. The two conflict with each other.
-Chris
-----Original Message-----
From: clightner@... [mailto:clightner@...]
Sent: Tuesday, May 06, 2003 9:15 AM
To: discuss@...
Subject: [opennms-discuss] Unable to get alerts via trapd
I have been running OpenNMS 1.0.2 for a couple months, monitoring a W2K
network. I recently began configuring traps to alert my staff to APC
temperature probe alerts. Unfortunately I am unable to receive the traps.
I have looked through the ONMS website, the web, and the documentation, but
can not find a solution for this problem.
ONMS is running on RH 8.0, PII desktop class machine with 528 MB ram. ONMS
was installed via APT and the Java version is 1.4.1_02. I get the ONMS web
interface, interfaces are detected, and alerts are sent via the console and
email. However, I do not receive trap alerts. When I run "opennms.sh
status" the system "thinks" for a few seconds and returns a blank command
line instead of showing the running ONMS modules. The trapd log tells me
trapd failed to setup the SNMP trap port, but eventually states it is ready
to receive traps. I have verified that port 162 is not in use.
Below is the output of my trapd.log:
2003-05-05 15:15:22,298 DEBUG [main] Trapd: start: Initializing the trapd
config factory
2003-05-05 15:15:22,433 DEBUG [main] Trapd: start: Getting the already
known IPs
2003-05-05 15:15:22,718 DEBUG [main] DatabaseConnectionFactory: created new
JDBC connection, no previous reference available
2003-05-05 15:15:25,065 DEBUG [main]
DatabaseConnectionFactory$CachedConnection: adding connection back into
pool [id=org.postgresql.jdbc2.Connection@...]
2003-05-05 15:15:25,065 DEBUG [main] Trapd: start: Creating the trap queue
processor
2003-05-05 15:15:25,142 DEBUG [main] Trapd: start: Creating the trap
session
2003-05-05 15:15:25,379 ERROR [main] Trapd: Failed to setup SNMP trap port
java.net.BindException: Address already in use
at java.net.PlainDatagramSocketImpl.bind(Native Method)
at java.net.DatagramSocket.bind(DatagramSocket.java:331)
at java.net.DatagramSocket.<init>(DatagramSocket.java:180)
at java.net.DatagramSocket.<init>(DatagramSocket.java:231)
at java.net.DatagramSocket.<init>(DatagramSocket.java:204)
at org.opennms.protocols.snmp.SnmpPortal.<init>(SnmpPortal.java:151)
at
org.opennms.protocols.snmp.SnmpTrapSession.<init>(SnmpTrapSession.java:312)
at org.opennms.netmgt.trapd.Trapd.init(Trapd.java:491)
at org.opennms.netmgt.trapd.jmx.Trapd.init(Trapd.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at mx4j.MBeanIntrospector.invoke(MBeanIntrospector.java:214)
at mx4j.MBeanServerImpl.invoke(MBeanServerImpl.java:158)
at org.opennms.netmgt.vmmgr.Manager.start(Manager.java:223)
at org.opennms.netmgt.vmmgr.Manager.main(Manager.java:512)
2003-05-05 15:19:09,609 DEBUG [main] Trapd: start: Initializing the trapd
config factory
2003-05-05 15:19:09,644 DEBUG [main] TrapQueueProcessor: TrapQueueProcessor
started
2003-05-05 15:19:09,644 DEBUG [main] Trapd: start: Trapd ready to receive
traps
Can anyone tell me how I can verify the traps are being received at the
ONMS box? I have looked for a way to send a trap from a Windows 2000
machine, but have not found a dependable method. The APC monitor should be
sending a trap, but it is not entered into the event log unless sending the
trap fails. Any insight or direction would be greatly appreciated.
Chris Lightner
NYS Division of Parole
Network Specialist
_______________________________________________
discuss mailing list (discuss@...)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/discuss
|