Pass parameter to event processing policy

Started by tivanni, December 05, 2013, 04:21:16 PM

Previous topic - Next topic

tivanni

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


Victor Kirhenshtein

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

tivanni

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

kyle11

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.