NetXMS Support Forum

English Support => General Support => Topic started by: tivanni on December 05, 2013, 04:21:16 PM

Title: Pass parameter to event processing policy
Post by: tivanni on December 05, 2013, 04:21:16 PM
Hi,

i'm monitoring the CRC errors for my switch's interface through snmp. I create a DCI for each interface (each DCI have a different oid), and when there are too many CRC errors a "Too Many CRC errors" event is created.
Now i want to configure the email alarm. I want in the mail alarm the interface that have too many CRC errors. For obtain this goal, i need that when event "Too Many..." is raised, the oid of the DCI is passed as parameter of the event. In that way, in event processing policy i can do the filtering that i need.
How can i pass an oid as event parameter?
I don't want to create an event for each interface.
Thank you for the help.

Giovanni

Title: Re: Pass parameter to event processing policy
Post by: Victor Kirhenshtein on December 06, 2013, 01:39:32 PM
Hi!

SNMP OID used for data collection is in fact DCI name, and so it is available as first event parameter via macro %1 or variable $1 in filtering scripts.

Best regards,
Victor
Title: Re: Pass parameter to event processing policy
Post by: tivanni on December 12, 2013, 07:30:49 PM
Thank you so much, is very useful! also the possibility of use macro's in template is great.

Congratulations, Netxms is a really complete tool.

Giovanni
Title: Re: Pass parameter to event processing policy
Post by: kyle11 on December 30, 2013, 09:12:35 PM
Quote from: Victor Kirhenshtein on December 06, 2013, 01:39:32 PM
Hi!

SNMP OID used for data collection is in fact DCI name, and so it is available as first event parameter via macro %1 or variable $1 in filtering scripts.

Best regards,
Victor

Thanks so much for this info.