Page 1 of 1

How to create custom macros for email template?

Posted: Fri Oct 01, 2021 8:09 am
by SuryanuSanyal
Hi Team,

I am working on email template and trying to add some custom data coming from log fields .
Could someone suggest how to create custom macros and add any log field data into email template.

Thanks in advance

Re: How to create custom macros for email template?

Posted: Mon Oct 04, 2021 11:18 am
by pbroste
Hello @SuryanuSanyal,

Thanks for reaching out, we see that we currently have a list of macros available for email templates. List found here:

http://yourlogserveraddresshere/nagioslogserver/alerts/templates

I see that this feature has been requested and is currently on the list. A possible workaround to pull data from 'api', to get results from a custom script from alert options. This would be out of the support scope but we would be able to help with questions.

Thanks,
Perry