How to create custom macros for email template?

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
SuryanuSanyal
Posts: 22
Joined: Wed Sep 15, 2021 5:43 am

How to create custom macros for email template?

Post 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
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: How to create custom macros for email template?

Post 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
Locked