<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to configure action in event process policy rule with java api]]></title><description><![CDATA[<p dir="auto">HI,<br />
The work I tried to do is when some threshold  reached , an alarm should be recorded.Setting threshold is done with java api(version 1.1.6),and configuring action(simply generate an alarm) in java console is OK,too.But when I try to do add action with java api , I don't know what action id should be used here.<br />
I wonder if there is some introduction about the original action of netxms?For example , the id for the action of "generate an alarm".</p>
]]></description><link>https://forum.netxms.org/topic/1525/how-to-configure-action-in-event-process-policy-rule-with-java-api</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:16:43 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1525.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Dec 2011 07:33:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to configure action in event process policy rule with java api on Thu, 29 Dec 2011 09:09:09 GMT]]></title><description><![CDATA[<p dir="auto">Thank you!</p>
]]></description><link>https://forum.netxms.org/post/6616</link><guid isPermaLink="true">https://forum.netxms.org/post/6616</guid><dc:creator><![CDATA[moseszero]]></dc:creator><pubDate>Thu, 29 Dec 2011 09:09:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure action in event process policy rule with java api on Thu, 29 Dec 2011 08:55:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Alarm generation and actions are different things. For generating alarm you do not need an action - it's just special attributes in event processing policy rule. To set rule to generate alarm, do the following (assuming you already have rule object called "rule" of type EventProcessingPolicyRule):</p>
<pre><code>rule.setFlags(rule.getFlags() | EventProcessingPolicyRule.GENERATE_ALARM);
rule.setAlarmMessage("%m");  // it's an example, you can specify your real alarm message here
rule.setAlarmSeverity(0);   // specify your severity
rule.setAlarmKey("");   // specify alarm key
</code></pre>
<p dir="auto">and to set rule to terminate alarm:</p>
<pre><code>rule.setFlags(rule.getFlags() | EventProcessingPolicyRule.GENERATE_ALARM);
rule.setAlarmSeverity(Severity.UNMANAGED);   // Severity UNMANAGED indicates alarm termination rule
rule.setAlarmKey("");   // specify alarm key
</code></pre>
<p dir="auto">Also, you can take a look at property pages in nxmc-epp plugin in management console.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6615</link><guid isPermaLink="true">https://forum.netxms.org/post/6615</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 29 Dec 2011 08:55:16 GMT</pubDate></item></channel></rss>