Smarts SAM: Trap notifier is automatically adding additional Smarts proprietary varbinds at the end of each trap.
search cancel

Smarts SAM: Trap notifier is automatically adding additional Smarts proprietary varbinds at the end of each trap.

book

Article ID: 304048

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:




 Smarts SAM trap notifier is automatically adding the following additional Smarts proprietary varbinds at the end of each trap:

.1.3.6.1.4.1.733.6.3.18.1.5.0

.1.3.6.1.4.1.733.6.3.18.1.6.0


Third-party trap receivers are unable to process Smarts traps

Environment

VMware Smart Assurance - SMARTS

Cause

The addition of the Smarts varbinds is resulting in third-party trap receivers being unable to process the trap, particularly as a result of the last varbind which has a hexadecimal value.

Resolution

This issue is resolved by using the configurable option to disable the addition of Smarts proprietary MIB variables when forwarding traps. 

The following section from the bottom of the trapd.conf file explains this option:

FORWARD   Specifies matching criteria for traps and the forwarding
#           destinations for matched traps.
#           Valid syntax: FORWARD <address> <OID> <generic type> \
#               <specific type> <<dest_opt> " <dest_entry>> \
#               [<<dest_opt> " <dest_entry>>...]
#           where, . . .
#               <dest_entry> is
#                   <host>:<port> " <host>:<port>:<community>
#               <host> is one of the following:
#                   <host name>[:<ipVersion>]
#                   <fully qualified domain name>[:<ipVersion>]
#                   <IPv4 address>[:<ipVersion>]
#                   "["<IPv6 address>"]"
#               <ipVersion> is
#                   v4 " v6 " v4v6 " v6v4
#                   or similar values with mixed case or uppercase letters
#               <port> is an integer
#               <community> is a community string

#               <dest_opt> is
#                   "-nosmtrapaddr" " "-usesmtrapaddr"
#           dest_opt -nosmtrapaddr disables the addition of Smarts MIB
#               variables representing the trap address type and trap address.
#           dest_opt -usesmtrapaddr enables the addition of these MIBs.
#               This is the default behavior.
#           -nosmtrapaddr and -usesmtrapaddr apply to destination entries
#               that occur after the option, until the end of the line or
#               until a new option overrides the active option.

Examples of how this option should be used are as follows:

#     All traps from all IPv4 addresses are forwarded to IPv6 host
#     sub.domain.com on port 2002, smarts OIDs smTrapAddress and
#     smTrapAddressType are not added when forwarding.
#     FORWARD: *.*.*.* .* * * -nosmtrapaddr sub.domain.com:v6:2002
#          
#     All traps from all IPv6 addresses are forwarded to IPv6 host
#     sub.domain.com on port 2002, smarts OIDs smTrapAddress and
#     smTrapAddressType are not added when forwarding.
#     FORWARD: *:*:* .* * * -nosmtrapaddr sub.domain.com:v6:2002
#          
#     All traps from all IPv6 addresses are forwarded to IPv6 host
#     with address 3ffe:80c0:22c:109:214:4fff:fe39:a73d on port 2002,
#     smarts OIDs smTrapAddress and smTrapAddressType are not added
#     when forwarding.
#     FORWARD: *:*:* .* * * -nosmtrapaddr [3ffe:80c0:22c:109:214:4fff:fe39:a73d]:2002
#          
#     All traps from all IPv4 addresses are forwarded to IPv4 host
#     amtest.smarts.com (on the default SMTP port) and IPv6 host
#     sub.domain.com (on port 2002).
#     Smarts MIB variables smTrapAddress and smTrapAddressType are added when
#     forwarding to amtest.smarts.com (default behavior).  The same OIDs are
#     not added when forwarding to sub.domain.com, due to the
#     -nosmtrapaddr option that precedes this destination entry.
#     FORWARD: *.*.*.* .* * * ipam.smarts.com:v4:2002 -nosmtrapaddr sub.domain.com:v6:2002