Hi, I have a "Host Alive" module alert set up on a 5 minute interval. Min number of alerts is 6, max number of alerts is 1 and the threshold is 1 day. This means I get one "CRITICAL" email after a 30 minute outage of the agent and then another email every 24 hours that the module remains critical. This is bit is working fine. The alert template assigned to the alert sends an email for critical and an email for recovery. My issue is that the email that is sent every 24 hours to remind the recipient that the agent is still offline is identical to the initial critical status email. Is there any way to customise the action "firing" element to make the reminder/threshold/anniversary email have different content? I don't mind getting my hands dirty with PHP if necessary. Thanks.
[SOLVED] Alert Threshold events
wjpounder · 5 abr 2016, 18:07 · 5 mensajes · 65 visitas
- Inicio del debate
Hello wjpounder, I'm afraid there is no way to do what you need with the tools that Pandora offers by default, but maybe you can make use of some of the available macros to send more useful information in your e-mails to be used as you want. I think you may be interested in these macros: _timestamp_: Time when the alert was fired (yy-mm-dd hh:mm:ss). _data_: Module data that caused the alert to fire. _alert_times_fired_: Number of times the alert has been fired. _modulegraph_nh_: (>=6.0) (Only for alerts that use the command eMail) Returns an image codified in base64 of a module graph with a period of n hours (eg. _modulegraph_24h_). A correct setup of the connection between the server and the console's api is required. This setup is done into the server's configuration file. Let me know if those macros would help. Kind regards, Antonio.
Hi, I think what I'd need would be a custom field in Alert Template -> Advanced Fields -> Field 3 alongside the critical and recovery fields. Unless the textbox allows if/else coding (which I know it won't). Thanks for confirming anyway.
Hi wjpounder, I think there is a easier way to do that. When setting an alarm for a module, you can later add more actions to that alert. It is often used for alert escalation, but maybe you could use the same feature to create a new action (e.g. named "Still offline"), consisting of an e-mail informing that the module is still offline, and add it to the existing alert. This way, the first time the module goes down, you will recieve an email to warn you about it, but the following days you will recieve the new "still offline" email, until you solve the problem. You can learn more about scalation here. Kind regards, Kevin.
Excellent. I will read up on this. Many thanks.
Entra en tu cuenta para publicar.
