Macros in Email template

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Macros in Email template

Post by MSPk »

Hi Team,

I'm trying to put in a macro in our email template to get the information of the service groups the monitored service is part off, I have added the macro $SERVICEGROUPNAMES$ to my email (in different formats like - $SERVICEGROUPNAMES$, %SERVICEGROUPNAMES%,%servicegroupnames%) but when the notification is sent out we don't see the relevant information instead we have the macro in the email as shown below. Did I use a wrong macro? I referring the link - http://nagios.sourceforge.net/docs/3_0/ ... groupnames for predefined macros. Please assist.

Service Groups: %SERVICEGROUPNAMES%
%servicegroupnames%
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Macros in Email template

Post by scottwilkerson »

You will need to add them to the following commands:
xi_service_notification_handler

Code: Select all

--servicegroupnames="$SERVICEGROUPNAMES$"
then you can reference them like %servicegroupnames%

Here is a list of pre-configured macros, and some instructions on adding additional macros
http://assets.nagios.com/downloads/nagi ... iables.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Macros in Email template

Post by MSPk »

Please close this thread as solved
Locked