DX NetOps

 View Only
  • 1.  Customization of Spectrum email Notifications.

    Posted Jan 23, 2018 07:05 AM

    I am running Spectrum 10.2.1 and need to customize the email notification that is generated by SANM. Can someone please provide some insight on where this being passed from and how to hide it from SANM?

     

    We need to have the mail subject with severity & ip address

    Desired Mail Subject:

    High Memory Utilization - Beyond 60% - Critical in server IP( xx.***.xx.xx )

     

    As of now it is coming with full details, which is common for all the alarms , which is not clear.

     

     

     

     Current Mail Subject:

    A CRITICAL alarm has occurred on cctns-srm-srvr (Model Name=SERVICE DESK-193)(Model Type=Host_systemEDGE)

     ============================================================
    Alarm Notification from SPECTRUM
    Alarm SET:

    Date:             10/10/2017
    Time:             11:47:57
    DeviceType:       systemEDGE Host
    Mtype:            Host_systemEDGE
    ModelName:        SERVICE DESK-193
    AlarmID:          1095
    Severity:         CRITICAL
    ProbableCauseID:  10009
    RepairPerson:    
    AlarmStatus:      
    SpectroSERVER:    cctns-srm-srvr
    Landscape:        0x1000000
    ModelHandle:      0x100006c
    ModelTypeHandle:  0x1160088
    IPAddress:        xx.***.xx.xx
    SecurityString:   ADMIN
    AlarmState:       NEW
    Acknowledged:     FALSE
    UserClearable:    FALSE
    Location:        
    AlarmAge:         0
    NotificationData: 
    sdtest2@gmail.com

    ProbableCause:    DEVICE HAS STOPPED RESPONDING TO POLLS

    SYMPTOMS:

    Device has stopped responding to polls.

    PROBABLE CAUSES:

    1) Device Hardware Failure.

    2) Cable between this and upstream device broken.

    3) Power Failure.

    4) Incorrect Network Address.

    5) Device Firmware Failure.

    RECOMMENDED ACTIONS:

    1) Check power to device.

    2) Verify status lights on device.

    3) Verify reception of packets.

    4) Verify network address in device and SPECTRUM.

    5) Cycle power on device and recheck.

    6) If above fails, call repair.

    EventMessage:     Tue 10 Oct, 2017 - 11:47:57 - Device SERVICE DESK-193 of type Host_systemEDGE has stopped responding to polls and/or external requests.  An alarm will be generated.   (event [0x00010d35])

     

     

     

    I need the alarm in the below format in the mail subject.

     

     

    Desired Mail Subject:

    High Memory Utilization - Beyond 60% - Critical in server IP

     

     

     

    Alarm Notification from SPECTRUM

    Alarm SET:

    Date:                           10/10/2017

    Time:                         11:47:57
    Model Name:              SERVICE DESK-193
    Alarm ID:                     1095
    Severity:                      CRITICAL
    IPad dress:                  xx.***.xx.xx
    Notification Data:       
    sdtest2@gmail.com

    PROBABLE CAUSES:
    Some process might be utilizing more memory

    SYMPTOMS:
    Memory Utilization Value is beyond 60

    RECOMMENDED ACTIONS: Check the Task Manager or Top command to identify the process which is causing this issue


    EventMessage:     Tue 10 Oct, 2017 - 11:47:57 - Device SERVICE DESK-193 of type Host_systemEDGE has stopped responding to polls and/or external requests.  An alarm will be generated.   (event [0x00010d35])



  • 2.  Re: Customization of Spectrum email Notifications.

    Posted Jan 23, 2018 07:17 AM

    Hi,

     

    Would suggest you to follow the below link for further understanding:

     

    https://docops.ca.com/ca-spectrum/10-2-2/en/managing-client-applications/alarmnotifier



  • 3.  Re: Customization of Spectrum email Notifications.

    Broadcom Employee
    Posted Jan 26, 2018 06:42 AM

    Hi,

     

    I would request you to refer below video which helps in configuring dynamic alarm title.

     

    Configuring Dynamic Alarm Title - CA Spectrum - YouTube 

     

    HTH.

    Sunny



  • 4.  Re: Customization of Spectrum email Notifications.

    Posted Feb 01, 2018 03:03 PM

    APCCTNS please advise if this answered your question.  You should mark the answer as correct if you are all set and / or let us know if more help is needed.  thank you ! 



  • 5.  Re: Customization of Spectrum email Notifications.
    Best Answer

    Broadcom Employee
    Posted Feb 02, 2018 05:42 AM

    First thing is to look at the current subject line that is sent when Notifier sends a mail (look at line 320 of the Setscript).

     

    $MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" $RCVRS 

     

    Then you will need to know the attributes that you want to add (if they are not already available), but lets say you wanted to add "Interface Description" as an example.

     

    Add to the .alarmrc the attribute for Interface Description (0x2101df)

     

    EXTRA_ATTRS_AS_ENVVARS=0x2101df

     

     

    Then add to the SetScript

     

     

    Added the following:

     

    LABEL=$SANM_0x2101df

     

    echo "Interface Label  " $LABEL

     

     

     Then you can modify the subject line to include the interface label as shown below

     

    $MAIL -s "SET Sev: $SEV Model: $MNAME ModelClass: $LABEL Interface: $SERVER Title: $ALARMTITLE" $RCVRS < /tmp/set_alarm.$PID

       

    The same procedure can be used for any other attribute, just add them in the alarmrc as an ENVVARS,  add them to the setscript as a varaible, and then add the variable to the Subject line.

     

    Best regards,
    Glenn