Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
SNMP processors fail to send request to remote target. Since the Net-Snmp tool is able to, this is a code related issue.
2022-01-13 18:51:11,214 ERROR [Timer-Driven Process Thread-7] org.apache.nifi.snmp.processors.GetSNMP GetSNMP[id=54526cc0-017e-1000-5f67-a66ec0d9ffbd] Failed to send request to the agent. Check if the agent supports the used version.: java.io.IOException: Can't assign requested address (sendto failed)
↳ causes: org.snmp4j.MessageException: Can't assign requested address (sendto failed)
org.snmp4j.MessageException: Can't assign requested address (sendto failed)
at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:545)
at org.snmp4j.Snmp.sendMessage(Snmp.java:1088)
at org.snmp4j.Snmp.send(Snmp.java:981)
at org.snmp4j.Snmp.send(Snmp.java:961)
at org.snmp4j.Snmp.send(Snmp.java:926)
at org.snmp4j.Snmp.get(Snmp.java:638)
at org.apache.nifi.snmp.operations.GetSNMPHandler.getResponsePdu(GetSNMPHandler.java:118)
at org.apache.nifi.snmp.operations.GetSNMPHandler.get(GetSNMPHandler.java:74)
at org.apache.nifi.snmp.processors.GetSNMP.performSnmpGetWithoutFlowFile(GetSNMP.java:222)
at org.apache.nifi.snmp.processors.GetSNMP.performSnmpGet(GetSNMP.java:213)
at org.apache.nifi.snmp.processors.GetSNMP.onTrigger(GetSNMP.java:161)
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1273)
at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:214)
at org.apache.nifi.controller.scheduling.AbstractTimeBasedSchedulingAgent.lambda$doScheduleOnce$0(AbstractTimeBasedSchedulingAgent.java:63)
at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Can't assign requested address (sendto failed)
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:693)
at org.snmp4j.transport.DefaultUdpTransportMapping.sendMessage(DefaultUdpTransportMapping.java:117)
at org.snmp4j.transport.DefaultUdpTransportMapping.sendMessage(DefaultUdpTransportMapping.java:42)
at org.snmp4j.MessageDispatcherImpl.sendMessage(MessageDispatcherImpl.java:203)
at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:522)
... 22 common frames omitted
Attachments
Issue Links
- links to