Even if i define EVENTS in snmptt.conf, still traps are comming as "unknown". Could you please help me troubleshooting it.
I am running, nagiosXI 5.2.9 on centos 6. My configuration goes as follows:-
Code: Select all
In snmptt.ini
snmptt_conf_files = <<END
/etc/snmp/userdefined_snmptt.conf
/etc/snmp/snmptt.conf
END
[root@strmon snmp]# cat /etc/snmp/userdefined_snmptt.conf
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.11.2.36.1.0.4 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.11.2.36.1.0.5 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.789.0.134 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/sinmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.789.0.532 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/sinmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.789.0.666 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/sinmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.789.0.85 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/sinmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.789.0.85 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/sinmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.789.0.87 "Status Events" Normal
FORMAT $*
EXEC /usr/local/bin/sinmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
Code: Select all
Mon Nov 21 16:46:47 2016: Unknown trap (SNMPv2-SMI-v1::enterprises.11.2.36.1.0.4) received from HOSTS at:
Value 0: HOSTS
Value 1: X.X.X.X
Value 2: 0:0:00:00.00
Value 3: SNMPv2-SMI-v1::enterprises.11.2.36.1.0.4
Value 4: X.X.X.X
Value 5:
Value 6:
Value 7:
Value 8:
Value 9:
Value 10:
Ent Value 0: SNMPv2-SMI-v1::enterprises.11.2.36.1.1.5.1.1.1.1=1
Ent Value 1: SNMPv2-SMI-v1::enterprises.11.2.36.1.1.5.1.1.4.1=1.3.6.1.4.1.11.10.2.1.3.25
Ent Value 2: SNMPv2-SMI-v1::enterprises.11.2.36.1.1.5.1.1.2.1=HPMSl
Ent Value 3: SNMPv2-SMI-v1::enterprises.11.2.36.1.1.5.1.1.5.1=http://X.X.X.X
Ent Value 4: SNMPv2-SMI-v1::enterprises.11.2.36.1.1.5.1.1.6.1=Command View MSL
Ent Value 5: SNMPv2-SMI-v1::enterprises.11.2.36.1.0.10=0x0001=Move event ;Event Code: =0x01 - move medium ;Task originator: =0x02 - CDB interpreter task ;Source element type.: =0x04 - tape drive ;Element number: =0x02, 2;Destination element type.: =0x02 - storage slot ;Element number: =0x3D, 61
Ent Value 6: SNMPv2-SMI-v1::enterprises.11.2.36.1.0.11=Unknown
Ent Value 7: SNMP-COMMUNITY-MIB::snmpTrapAddress.0=X.X.X.X
Ent Value 8: SNMP-COMMUNITY-MIB::snmpTrapCommunity.0=ubsmonitoring
Ent Value 9: SNMPv2-MIB::snmpTrapEnterprise.0=SNMPv2-SMI-v1::enterprises.11.2.36.1
[root@strmon snmp]# grep -w SNMPv2-SMI-v1::enterprises.11.2.36.1.0.4 ./*
./userdefined_snmptt.conf:EVENT TapeSuspended SNMPv2-SMI-v1::enterprises.11.2.36.1.0.4 "Status Events" Normal