CMK version: 2.3.0p12
OS version: Ubuntu 22.04
Hello,
TL;DR: I need a snmptrap command to fake a linkDown event.
Long story:
To test the Event Console I want to be able send a snmptrap about a linkDown to the EC.
RFC 1157 RFC 1157: Simple Network Management Protocol (SNMP)
It’s this OID .1.3.6.1.6.3.1.1.5.3 linkDown
snmptranslate can translate this OID:
OMD[central23]:~$ snmptranslate .1.3.6.1.6.3.1.1.5.3
IF-MIB::linkDown
but it seems that the EC Event Console does not Translate SNMP traps even if this is configured.
To debug this further I am now looking for the correct snmptrap command line to fake such a trap.
I do not understand the snmptrap manpage.
To me this is all very strange syntax.
After a ton of googling I came to this command line, but I am not sure if it is correct.
Therefore I am asking here, so that some pro like @andreas-doehler can help me ![]()
snmptrap -v 2c -c public <checkmkserver> "" .1.3.6.1.6.3.1.1.5.3 ifIndex i 2 ifAdminStatus i 1 ifOperStatus i 1
Other sources mentioned this but I get an error:
OMD[central23]:~$ snmptrap -v 2c -c public localhost '' 1.3.6.1.6.3.1.1.5.3 1.3.6.1.2.1.2.2.1.2.2 i 2
1.3.6.1.2.1.2.2.1.2.2: Bad variable type (Type of attribute is OCTET STRING, not INTEGER)
Thanks in advance
