DX Application Performance Management

  • 1.  Alert: Perform action if severity decreases from error to ok

    Posted Aug 21, 2014 05:15 AM

    Hi,

     

    Is there an option to allow the sending of an email (performing of an action) as soon as a problem is fixed?

     

    Thank you,
    Stefan



  • 2.  Re: Alert: Perform action if severity decreases from error to ok

    Posted Aug 21, 2014 11:37 AM

    Hi Stefan,

     

    There are a few options for your requirement under the "Trigger Alert Notification" configuration:

     

    "Whenever Severity Changes" option will send an email when the problem begins and ends (depending on how your interval is defined)

    "Report only final state whenever severity changes" option will send an email when the problem is resolved and the severity is back to normal.

     

    Check out the Workstation user guide for more detail on how these alert triggers work.

     

    Thanks,

    Alex



  • 3.  Re: Alert: Perform action if severity decreases from error to ok

    Posted Aug 22, 2014 02:38 AM

    Hi Alex,

     

    I am not sure if I understand correctly. I have a simple case. An availability metric that shows "0" if available and "1" if not available. I want to inform via an email action in case a problem occurs and inform again as soon as the problem is resolved. The email has to be different, the first saying "we encountered a problem", the second "the problem is now fixed"

     

    To my knowledge I cannot define an action for "returning to normal state", so I would have to use the warning state "as normal" and define the email action "everything normal again" in this one. But then as soon as my system starts up, the alerts sees normal state, which means he enters "warning" state and sends the mail with "everything is ok again, although there was no problem yet". "Report only final state" can also not fix the problem with sending an email at startup when "mis-using" the warning state as "normal" as this will also send this incorrect mail.

     

    Where would you define the action for sending the email that everything is now ok (I only want to send this mail if there was a problem before that).

     

    Thanks,

    Stefan



  • 4.  Re: Alert: Perform action if severity decreases from error to ok
    Best Answer

    Posted Aug 25, 2014 10:39 AM


    Stefan,

     

    We ran into the same problem, need to customize the email subject/body so we can have custom Error/Good email subject/body.

     

    We fought with the field built custom_email jar, and then went to just sending all of our emails through a shell script with all the parameters then build logic within our shell script to assemble our message and send through the system's retrieved DNS email host.

    By doing this, we have a very simple if/then logic that determines if the current state is lower than the previous state and then send a "good"/"solved" email.

     

    Depending on the state, that picks up a different text file to inject into the email as the subject and a different one for the body.

     

    An issue we hit when we did this was to determine what to do when the metric when from danger to caution, then from caution to good.  Should we send danger-good and also send a caution-error on that one message.  We fixed that by adding a custom flag on the parameters that we can then if/then to determine which case it was and react accordingly.

     

    Hope this helps,

    Billy



  • 5.  Re: Alert: Perform action if severity decreases from error to ok

    Posted Aug 26, 2014 01:38 AM

    Hello Billy,

     

    Thank you for your reply. Our backup plan was also to move the logic to a script. Is there a chance, that you can send me your script (stefan dot siegl at novatec-gmbh.de?

     

    Thank you again,

    Stefan



  • 6.  Re: Alert: Perform action if severity decreases from error to ok

    Posted Aug 26, 2014 08:57 AM

    Stefan,

     

    I've uploaded our email shell script (with supporting text file) as a zip to the community content directory:

     

    CA APM email shell script.zip

     

    Within the Zip there is a MS Word document that explains how to install, use and modify for your own use.

     

    Do hope this helps,

     

    Billy Cole



  • 7.  Re: Alert: Perform action if severity decreases from error to ok

    Posted Aug 27, 2014 10:09 AM

    Hi Billy,

     

    Thanks a lot for sharing your scripts. We will have a look

     

    Thank you,

    Stefan