NetXMS Support Forum

English Support => General Support => Topic started by: duanebutler on May 27, 2016, 09:20:16 AM

Title: Netxms macro for instance??
Post by: duanebutler on May 27, 2016, 09:20:16 AM
Hi There

I want to include the instance in my e-mail notifications.  I use %6 but does not seem to work.

What is the correct macro for the instance?

Regards
Title: Re: Netxms macro for instance??
Post by: Victor Kirhenshtein on May 27, 2016, 09:34:58 AM
Hi,

for threshold violation event it is %6 (or %<instance>). Are you sure you generate email from event related to threshoold?

Best regards,
Victor
Title: Re: Netxms macro for instance??
Post by: duanebutler on May 27, 2016, 12:45:26 PM
Hi Victor

For testing i only entered %6 in my e-mail alert.  And event is related to threshold.  I double checked.

What i have also noticed was that when i use the DC_SERVICE_NOT_RUNNING event and i use the alarm text in the e-mail (%A). It still does not include the instance in the mail.
Title: Re: Netxms macro for instance??
Post by: Victor Kirhenshtein on May 27, 2016, 06:13:21 PM
Hi,

do you have "instance" field actually filled for DCI (it is on "Thresholds" tab in DCI properties)?

Best regards,
Victor
Title: Re: Netxms macro for instance??
Post by: duanebutler on May 30, 2016, 01:30:03 PM
Hi Victor

That was it.  I left out the instance in thresholds.  I initially thought that it would use the instance name in the parameter description.

But all is good now.

Thanx again for your speedy replies

Regards