Redirecting specific traps to another Smarts Trap Receiver
search cancel

Redirecting specific traps to another Smarts Trap Receiver

book

Article ID: 303693

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


How to redirect certain traps to another Smarts trap receiver.


Environment

VMware Smart Assurance - SMARTS

Resolution

Edit the trapd.conf file on the OI server and make the following change:
  1. Uncomment the "FORWARD" line where the Cold/Warm start traps are defined. Also add the new receiver server and the listening port on that server:
    Before change:
    # Generic: coldStart, warmStart, LinkUp, LinkDown
    #FORWARD: *.*.*.* .* <0-3> * host:port
     
    After change:
    # Generic: coldStart, warmStart, LinkUp, LinkDown
    FORWARD: *.*.*.* .* <0-3> * <host>:<port>
     
    Replace <host> with the name or IP address of the Concord eHealth server and <port> with the listening port on the Concord eHealth server.
  2. Save the file and restart the adapter.
  3. Verify if these traps are now also being sent to the Concord server.

    Now, if you also do not want OI to process these the Cold/Warm start traps, you will also need to Modify the trap_mgr.conf file too:
  4. Comment out the following lines in trap_mgr.conf file under GENERIC TRAPS:

BEGIN_TRAP * 0 0 
        ClassName:        Host
        InstanceName:     $SYS$
        EventName:        coldStart
        Severity:         5
        Expiration:       600 
        State:            NOTIFY
        EventType:        MOMENTARY
END_TRAP

BEGIN_TRAP * 1 0 
        ClassName:        Host
        InstanceName:     $SYS$
        EventName:        warmStart
        Severity:         5
        Expiration:       600 
        State:            NOTIFY
        EventType:        MOMENTARY
END_TRAP