DX NetOps

Expand all | Collapse all

Dynamic alarm title (76620) on CA Disk threshold alarms

  • 1.  Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 05, 2018 10:06 AM
      |   view attached

    Hello,

     

    I am trying to change the disk threshold alarm title so that is more intuitive since it also alarms on Physical and Virtual Memory as well and when the Disk word is written on it is deceiving.

     

    I have updated all 4 events (0x00c40030, 0x00c40031, 0x00c40032 and 0x00c40033) with 76620 instead of S 1 variable as follows:

    The  {S 76620} has exceeded the maximum utilization threshold of {I 2} {S 5}.  Utilization at the time of this event was {S 3} {S 6}.  This disk is being monitored by model {S 4}.  This is a MINOR event.  {t} (name - {m}).

    I have also changed the Event Variable Discriminator from 1 to 76620 for 40031, 40032 and 40033.

     

    I am missing something since the alarms are coming but the dynamic title is not appearing or the first variable is not being grabbed and put in the title as I want see attached pic.

     

    Original alarm:

     

    Alarm Title: "Disk Threshold Exceeded"

    Alarm Type:  "Disk Threshold Exceeded"

     

    How I want the alarm to work:

     

    Alarm Title: "c:\"

    Alarm Type: "Threshold Exceeded"

     

    or

     

    Alarm Title: "Physical Memory"

    Alarm Type: "Threshold Exceeded"

     

    And so on, this way is more genetic and not specific to the word "Disk" since it also throws memory alarms.

     

    Any help in resolving my issue would be greatly appreciated.

     

    Thank you,

     

    Raul



  • 2.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms
    Best Answer

    Posted Apr 05, 2018 11:35 AM

    Raul,

     

    When seeing {S 1}, or {I 2} or anything else similar in an Event Format file, it means to display the value of the event variable (also referred to as the varbind) that was saved previously as a Text value (the "S" in {S 1}) or an Integer value (the "I" in {I 2}). That means there was something else that saved the value. A trap or internally in the code or an Event Procedure for example. 

     

    So, in order to use the Dynamic Alarm Title value of 72660, it would have to have been saved prior to displaying it in the event. Again, by a trap or internally in the code or an Event Procedure.

     

    I believe these events (0x00c40030, 0x00c40031, 0x00c40032 and 0x00c40033) are created by polling internal to the Spectrum code so we cannot simply change the Event Format file to accomplish this. What you will need to do is create an custom Event Procedure. 

     

    Take a look at the knowledge document located at https://comm.support.ca.com/kb/Adding-model-attributes-to-an-Alarm-Title/KB000042564 for more information



  • 3.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 05, 2018 01:18 PM

    I was afraid I would have to use the event procedure to achieve this. So I read the article but not sure where to start.

    I will leave alone the original 0x00c40030

    And will take copies of each 0x00c40031, 32 and 33

     

    Then I will use the example on the article and replace S 1 varbind with 76620.

    Am I in the right path?

    Thank you,

     

    Raul 



  • 4.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 05, 2018 02:55 PM

    Raul,

     

    I created the following Event Procedure in the $SPECROOT/custom/Events/EventDisp file to replace the out of the box 0x00c40033 event:

     

    0x00c40033 E 50 P "\
    CreateEventWithAttributes(\
    { C CURRENT_MODEL },\
    { H 0xfff00005 },\
    SetEventAttribute(\
    GetEventAttributeList(),\
    { U 76620 },\
    GetEventAttribute(\
    { U 1} )))"

     

    This Event Procedure will take the value of Event Variable 1 ({U 1}) from the 0x00c40033 event and populate Event Variable 76620 for new event 0xfff00005. To create event 0xfff00005, I just copied event 0x00c40033 using the Event Configuration Editor. Your event id will probably be different after the copy.

     

    You will notice there is no longer an alarm created for the 0x00c40033  event. Event 0xfff00005 will now generate the alarm. The alarm title will contain the value of the 76620 event variable.

     

    Joe



  • 5.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 06, 2018 07:41 AM

    Joe thank you so much that worked.

     

    Have a great day!

     

    Raúl



  • 6.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 06, 2018 07:44 AM

    Outstanding!! I am glad I was able to assist.



  • 7.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 06, 2018 07:54 AM

    Joe,

     

    One more question, what do I do if I want to append the percentage to the dynamic alarm title together with the varbind 1

    The varbind is integer 2.

     

    Thank you again,

     

    Raúl



  • 8.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 06, 2018 09:22 AM

    You will need to add an Append tab to your Event Procedure 

     

    Joe



  • 9.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 06, 2018 09:52 AM

    Thank you.

     

    Raúl



  • 10.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 06, 2018 11:59 AM

    Hi Joe,

     

    I am sorry but it is not working could you help me:

     

    CreateEventWithAttributes(\
    1422   { C CURRENT_MODEL },\
    1423    { H 0xfff004e3 },\
    1424     SetEventAttribute(\
    1425      GetEventAttributeList(),\
    1426       { U 76620 },\
    1427       Append
    1428        GetEventAttribute(\
    1429         { U 1},{I 2} )
    1430        ))))"



  • 11.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 09, 2018 09:08 AM

    Try the following:

     

    0x00c40033 P"\
    CreateEventWithVariables(\
    {C CURRENT_MODEL},\
    {H 0xfff00005},\
    SetEventVariable(\
    GetEventVariableList(),\
    {H 0x00012b4c},\
    Append(\
    ToString(GetEventVariable ( { U 1 })),\
    ToString( GetEventVariable({U 2})))))"



  • 12.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 09, 2018 10:03 AM

    Thank you Joe, this will help us very much.

    It worked perfectly.

     

    Have a great day!

     

    Raúl



  • 13.  Re: Dynamic alarm title (76620) on CA Disk threshold alarms

    Posted Apr 09, 2018 10:11 AM

    Outstanding!!!

     

    I am glad I was able to assist.

     

    Joe