Discussion:
snmptrap and value in quotes. The snmptrapd deletes quotes
Дмитрий Зиновьев
2017-04-25 10:18:21 UTC
Permalink
When a snmptrap arrives and if the server can be resolve OID, it writes a
message without quotes marks, if SNMP-oid is not known, then in quotation
marks. How to make that value always written in quotation marks? example

snmptrap -v 1 -c public localhost '' '' '' '' '' 1.3.6.1.2.1.1.5 s "Some
host name" Apr 21 13:41:32 65_test snmptrapd[30680]: 2017-04-21 13:41:32
192.168.124.28(via UDP: [127.0.0.1]:43906->[127.0.0.1]) ....
*SNMPv2-MIB::sysName
= STRING: Some host name*

snmptrap -v 1 -c public localhost '' '' '' '' '' 1.3.6.1.2.6.1.5 s "Some
host name" Apr 21 13:41:45 65_test snmptrapd[30680]: 2017-04-21 13:41:45
192.168.124.28(via UDP: [127.0.0.1]:41895->[127.0.0.1]) ....
*SNMPv2-SMI::mgmt.6.1.5
= STRING: "Some host name"*

It is not possible to change the text of the snmptrap.

Loading...