You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Miraj Godha (JIRA)" <ji...@apache.org> on 2019/04/24 10:45:00 UTC

[jira] [Commented] (AMBARI-13267) How to solve this ERROR that occurred during SNMPv3 trap dispatching?

    [ https://issues.apache.org/jira/browse/AMBARI-13267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16825014#comment-16825014 ] 

Miraj Godha commented on AMBARI-13267:
--------------------------------------

Is there any resoloution to this error. I am also facing similar issue.

 

java.lang.IllegalArgumentException: snmp-server-1.gvs.ggn/162
 at org.snmp4j.smi.UdpAddress.<init>(UdpAddress.java:48)
 at org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher.sendTraps(SNMPDispatcher.java:249)
 at org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher.dispatch(SNMPDispatcher.java:157)
 at org.apache.ambari.server.notifications.DispatchRunnable.run(DispatchRunnable.java:58)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:748)
24 Apr 2019 07:36:08,857 INFO [alert-dispatch-1] SNMPDispatcher:152 - Sending SNMP trap: OK NameNode Client RPC Queue Latency (Hourly)
24 Apr 2019 07:36:08,859 ERROR [alert-dispatch-1] SNMPDispatcher:163 - Error occurred during SNMP trap dispatching.
java.lang.IllegalArgumentException: snmp-server-1.gvs.ggn/162

> How to solve this ERROR  that occurred during SNMPv3 trap dispatching?
> ----------------------------------------------------------------------
>
>                 Key: AMBARI-13267
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13267
>             Project: Ambari
>          Issue Type: Test
>          Components: alerts
>    Affects Versions: 2.0.0
>         Environment: cenOS6.5
>            Reporter: huang
>            Priority: Major
>
> When Ambari dispatched the SNMPv3 trap, error happened. In the logs, it shows :
> ERROR [alert-dispatch-14] SNMPDispatcher:126 - Error occurred during SNMP trap dispatching.
> java.lang.NullPointerException
> 	at org.snmp4j.security.AuthGeneric.passwordToKey(AuthGeneric.java:205)
> 	at org.snmp4j.security.SecurityProtocols.passwordToKey(SecurityProtocols.java:269)
> 	at org.snmp4j.security.USM.getUser(USM.java:261)
> 	at org.snmp4j.security.USM.generateResponseMessage(USM.java:355)
> 	at org.snmp4j.security.USM.generateRequestMessage(USM.java:215)
> 	at org.snmp4j.mp.MPv3.prepareOutgoingMessage(MPv3.java:767)
> 	at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:437)
> 	at org.snmp4j.Snmp.sendMessage(Snmp.java:1051)
> 	at org.snmp4j.Snmp.send(Snmp.java:875)
> 	at org.snmp4j.Snmp.send(Snmp.java:868)
> 	at org.snmp4j.Snmp.send(Snmp.java:833)
> 	at org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher.sendTraps(SNMPDispatcher.java:203)
> 	at org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher.dispatch(SNMPDispatcher.java:120)
> 	at org.apache.ambari.server.notifications.DispatchRunnable.run(DispatchRunnable.java:58)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> I don't know why it happens and how to solve the problem?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)