Customizing %last10alertlogs% macros in 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
DhananjayaPatil
Posts: 11
Joined: Fri Oct 22, 2021 8:06 am

Customizing %last10alertlogs% macros in Email Template

Post by DhananjayaPatil »

Hi Team,

How to customize the %last10alertlogs% in an Email Template.

Thanks in advance
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Customizing %last10alertlogs% macros in Email Template

Post by ssax »

It is not currently customizable, what specifically are you trying to do?
DhananjayaPatil
Posts: 11
Joined: Fri Oct 22, 2021 8:06 am

Re: Customizing %last10alertlogs% macros in Email Template

Post by DhananjayaPatil »

Hi ssax,

We were using this macro to get last 10 alerts and getting all fields on the email.
We wanted to customize it in such a way that we get only few fields and not all fields.

Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Customizing %last10alertlogs% macros in Email Template

Post by ssax »

That functionality to do that doesn't currently exist, I've submitted a feature-request to development for this on your behalf:

Code: Select all

FR: LS - Alerts - Add the functionality to limit the fields that are displayed in lastalertlog/last10alertlogs/alertlogs email template variables
Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.
Locked