How to add ACK button/link in alert template

Hello,

How could i add an ACK button/link in alert template so that it will ack the alert ?
Thank you.

I wrote a PHP script that does that. It passes the alert rule, device I’d, and the person acknowledging it. Didn’t think about adding a button but my alert emails all have a link that does that.

great. could you share the script?