Is there an option to allow the sending of an email (performing of an action) as soon as a problem is fixed?
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,
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.
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).
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,
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,
Thanks a lot for sharing your scripts. We will have a look
Retrieving data ...