Questions tagged [snmp-trap]

A trap is an SNMP message used by an Agent to notify its Manager that an event has occurred, either an error or a normal occurrence. Use this tag for SNMP related questions that concern Trap messages.

A trap is an SNMP message used by an Agent to notify its Manager that an event has occurred, either an error or a normal occurrence. Traps are often used by network management systems to detect faults or deviations in the monitored devices.

Traps are sent without expecting acknowledgement, in contrast to Inform messages. A Manager that receives an Inform message should send a reply to the Agent.

Like other SNMP messages, a trap may carry one or several Variable Bindings. The value and meaning of each variable binding is implementation specific.

A MIB document is usually available which describes both the Trap and the varbinds.

161 questions
1
vote
1 answer

"Encryption support not enabled" when using snmptrap.exe

I have windows 10 pro. I am trying to use snmptrap.exe to send out an SNMP trap. V2c traps work fine. I get errors when I try to send out v3 traps. Partial command line: snmptrap.exe -m ALL -M "C:/Program…
user3407352
  • 105
  • 6
1
vote
1 answer

snmpwalk: Cannot find module

I searched intensively and applied available solutions from google, all these solution did not fixed the problem. I keep getting the error messages when running the command snmpwalk on the Ubuntu OS which is using net-snmp. The following is the…
Passionate
  • 139
  • 1
  • 4
  • 13
1
vote
0 answers

Traps for table elements

In my MIB I have a table which contains properties for some entity. Herewith, once it is a table, there can be several entities of the same type. I also have a list of available traps, and there is a subset of traps, related to this entity type. But…
1
vote
1 answer

How to send v3 trap with enginedId using snmp4j

I'm trying to create a standalone java application to send SNMP v3 Traps along with engineId. I'm using snmp4j 2.5.3 and Java 1.8 Below is the code snippet which I am using. When I provide engineId while addUser, it throws "Message processing model…
1
vote
2 answers

Sending OID in SNMP Trap header

I have a java application which sends SNMP traps using SNMP4J. The problem is that OID is sent in trap body. All data I'm setting is successfully sent, but in trap body. I want Oid to be sent in trap header. How can I send Oid in Trap header? …
JiboOne
  • 1,438
  • 4
  • 22
  • 55
1
vote
1 answer

Snmp trap receiver as a custom processor in Apache Nifi

Objective:- Looking for an option to use SNMP trap receiving mechanism as a custom processor in Apache Nifi. Looked at references like how to create a custom processor in Nifi (Apache docs and youtube videos), Nifi Source code of GetSNMP (including…
Raghu I
  • 45
  • 7
1
vote
1 answer

Generate log file daily using log4j2.xml and how to use SNMP appender in log4j2.xml

1)I want to generate the log file on daily basis using log4j2.xml. I am using the RollingFile appender tag to achieve the same.However, it is appending the logs on the same file.
1
vote
2 answers

Shellscript to monitor a log file if keyword triggers then run the snmptrap command

Is there a way to monitor a log file using shell script like tail -f /var/log/errorlog.txt then if something like down keyword appears, then generate SNMPTRAP to snmp manager and continues the monitoring I have a SNMP script available to generate…
vignesh
  • 43
  • 1
  • 6
1
vote
2 answers

SNMP4J V3 Trap with AuthPriv not processing

I'm trying to create a SNMP TRAP/Notify agent in Java using SNMP4J. The traps/notify's are meant to be sent to a remote listener. I'd like to add support for V2 and V3 traps with authentication. My setup currently: Dev machine running the…
1
vote
0 answers

How to get response of snmptrap v2 with private mib

the private mib is define as below: 1.3.6.1.4.1.49763.1.2.5 userTrap NOTIFICATION-TYPE OBJECTS{ userName, userType, userStatus } STATUS current DESCRIPTION "Traps of user operation" ::={stationTrap 2} My code is supported by SNMP4J as below…
MR.chen
  • 11
  • 3
1
vote
1 answer

how to init snmp V3 Parameters to get snmpV3 trap using AdventNet

I am trying to recieve SNMP v3 traps from a device, using Adventnet. When getting a trap I see the following AdventNet exception thrown: Exception while constructing message after receiving PDU. Dropping this PDU received from xxx.xxx.xxx.xxx. …
yogev levi
  • 369
  • 1
  • 4
  • 21
1
vote
0 answers

how to receive snmpv3 trap with AdventNet

I'm trying to add the option to get a TRAP V3 (I can get TRAP V1 and V2). here is the Session init public void CreateSession() { logger.debug(".in"); System.out.println("Waiting to receive traps ......."); api = new SnmpAPI(); …
yogev levi
  • 369
  • 1
  • 4
  • 21
1
vote
1 answer

How to notify with SNMP that an error was solved. Traps?

Using SNMP I can create traps (notifications). In effect, these are notifications that an error situation occurred. But how do I notify that a situation returned to normal? Can I somehow 'train' systems like PTRG or Zabbix to interpret one trap as…
Frank
  • 431
  • 1
  • 5
  • 25
1
vote
1 answer

Raising/Clearing SNMP alarm best practices

I am currently having an application where SNMP ALARMS are raised when my program is not able to reach an external API. I clear the alarm when ever i am successfully getting a response back from the API . Below is the code for the same . …
suvankar bose
  • 291
  • 2
  • 12
1
vote
1 answer

Unable to create snmpv3 session and send snmpv3 trap

1. Not able to create SNMPv3 session I am using NET::SNMP perl library to send snmpv3 trap.It was working fine with snmpv1 and snmpv2 but i am unable to send snmpv3 trap. I am using Mg-soft trap ringer for receiving traps but i am unable to even…
OneWhoKnocks
  • 91
  • 2
  • 4
1 2
3
10 11