Questions tagged [snmptrapd]

snmptrapd is an SNMP application that receives and logs SNMP TRAP and INFORM messages.

snmptrapd is an SNMP application that receives and logs SNMP TRAP and INFORM messages.

See http://www.net-snmp.org/docs/man/snmptrapd.html

45 questions
2
votes
0 answers

Issue on receiving trapv3 on snmptrapd

I have a unix machine where is configured snmptrapd. The configuration on /etc/snmp/snmptrapd.conf is the following createUser -e 0x8000000001020304 USRSNMPV3NET SHA "mypwd" AES "mypwd2" authUser log,execute,net USRSNMPV3NET # Format logs for…
Kalepos
  • 21
  • 2
2
votes
1 answer

How to configure engine ID to send SNMP trap V3 using SNMP4J?

I'm using snmp4j 2.8.4 and Java 1.8 It works when I use the command line to send traps.for example snmptrapd.conf authCommunity log,execute,net public createUser -e 0x8000000001020304 myuser MD5 mypassword DES mypassword1 authUser log,execute,net…
sun
  • 21
  • 1
2
votes
1 answer

How to send snmptrap with net-snmp in C?

I am developing an application for an embedded device. I want to send traps when some situation occurred. I found some examples but not really helped to me. There is a function called send_v2trap() in net-snmp. Can someone help me? Is there need to…
lazkopat
  • 21
  • 1
  • 3
2
votes
2 answers

SNMP TRAPS sending to other file, than /var/log/messages

I have configuration snmptrapd.conf like below: disableAuthorization yes authCommunity log,execute,net public I wanted to redirect all messages for other file, ex. /var/log/snmp.log, not for /var/log/messages. I tried also reconfigure rsyslog.conf…
Grzegorz
  • 33
  • 1
  • 4
2
votes
1 answer

Authoritative engine Id and context engine id in snmp v3

I have a client machine which sends snmpinform. In other machine i am running snmptrapd server. I wanted to mention context engine id and authoritative engine id explicitly. While sending command i can use -e for authoritative engine id, -E for…
K.K
  • 311
  • 1
  • 7
  • 17
2
votes
1 answer

How to read and truncate the snmptrapd log file without restarting the daemon

i have made a python script that performs a nagios check. The functionality of the script is pretty simple it just parses a log and matches some info witch is used to construct the nagios check output. The log is a snmptrapd log witch records the…
primero
  • 591
  • 1
  • 6
  • 17
1
vote
1 answer

How to subscribe for the snmpclient (printer) in C#

Actually I have a sample SNMP trap receiver code. But its like a UDP socket is established and it listens for the trap. I am testing the code manually by generating the trap with the help of an exe. But now I have to subscribe for the snmp client…
Mikemohan
  • 13
  • 3
1
vote
0 answers

SNMP trap message shows source and destination as unknown

I am trying to send snmp traps using TLS/DTLS with net-snmp 5.7.2 package. I am unable to see the source and destination address in my trap message. It is showing 'unknown' instead of the address. I used the below command to send the trap. snmptrap…
1
vote
1 answer

How do write snmptrapd configuration file?

I need snmptrapd configuration file, ı does not find any configuration file. If ı run "snmptrapd -Le -A -Lf /var/log/snmptrapd.log" command from commandline, snmptrapd process is running. And ı try this snmptrapd -Le -A -Lf /var/log/snmptrapd.log…
Burak ATABAY
  • 13
  • 1
  • 5
1
vote
1 answer

how to decode the result of listenning to port 162 (Snmp Trap)?

I want to get the snmp trap by using my own traplistener. In fact, I used a code found in internet I added some modifications and now it is working. I can listen through the port 162. #include "stdio.h" #include "winsock2.h" #pragma comment(lib,…
Tarik
  • 23
  • 5
1
vote
1 answer

Receiving snmptraps in a C program

I want to write a C program which receives snmptraps sent from another machine and parses them. I am able to do this from the command line, but have no idea on how to implement this in C. I searched online and found most code was in ruby or the…
kid
  • 140
  • 1
  • 10
1
vote
0 answers

Why can't I receive a trap from localhost?

I'm trying to send an SNMP trap from localhost TO localhost. I can't see it coming with tcpdump. I'm using the snmptrap command. I've covered following scenarios : Host A send trap to Host B = I get the trap Host B send trap to Host A = I get the…
FF123
  • 37
  • 4
1
vote
0 answers

snmptrapd client configuration In Ubuntu

I successfully installed snmpd and cacti using https://www.digitalocean.com/community/tutorials/installing-the-cacti-server-monitor-on-ubuntu-12-04-cloud-server How to install Perl-Net-snmp module in Ubuntu?.because I want to receive traps in perl…
Senthan
  • 11
  • 3
1
vote
1 answer

snmp trap specific trap code

I'm building a SNMP agent and now working on the trap message. Before I begin to write the code of the trap message, I have question: In SNMPv1 what is the specific trap code ? Everywhere I searched I get just superficial definition and I want…
dor_torge
  • 69
  • 2
  • 8
1
vote
1 answer

How to write a code sending user defined traps by using Net-SNMP API

Can we write the code for sending user defined traps rather than those mentioned in snmpd using Net-SNMP API like below to send traps netsnmp_send_traps(), send_v2trap(), send_v3trap()? I am not planning to write any MIB module. So I don't expect…
1
2 3