<?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[Вопрос по Macros for Event Processing]]></title><description><![CDATA[<p dir="auto">Добрый день.</p>
<p dir="auto">Возможно плохо искал, но как в отправляемое сообщение добавить информацию о подсети в которой произошло событие?<br />
Пример<br />
Появился новый нод, как в сообщении указать подсеть, в которой он появился?</p>
]]></description><link>https://forum.netxms.org/topic/8123/вопрос-по-macros-for-event-processing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 21:29:30 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8123.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Mar 2025 09:01:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Вопрос по Macros for Event Processing on Tue, 18 Mar 2025 13:48:18 GMT]]></title><description><![CDATA[<p dir="auto">Да, все верно - это NXSL</p>
]]></description><link>https://forum.netxms.org/post/34216</link><guid isPermaLink="true">https://forum.netxms.org/post/34216</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 18 Mar 2025 13:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to Вопрос по Macros for Event Processing on Tue, 18 Mar 2025 01:21:16 GMT]]></title><description><![CDATA[<p dir="auto">Благодарю, работает. Я так понял, это с помощью NXSL написано?</p>
]]></description><link>https://forum.netxms.org/post/34208</link><guid isPermaLink="true">https://forum.netxms.org/post/34208</guid><dc:creator><![CDATA[Argonauts]]></dc:creator><pubDate>Tue, 18 Mar 2025 01:21:16 GMT</pubDate></item><item><title><![CDATA[Reply to Вопрос по Macros for Event Processing on Mon, 17 Mar 2025 15:40:11 GMT]]></title><description><![CDATA[<p dir="auto">Есть событие SYS_NODE_ADDED. Если нода найдена через Network Discovery то это событие генерится после того, как произошел configuration poll и нода уже добавлена под объекты подсетей.<br />
И тогда в EPP в правиле для этого события можно поставить filtering script</p>
<p dir="auto">subnets = [];<br />
for (p : $node.parents) if (classof(p) == "Subnet") subnets.append(<a href="http://p.name" rel="nofollow ugc">p.name</a>);<br />
$event.addParameter("subnets", subnets.join(", "));<br />
return true;</p>
<p dir="auto">и скрипт добавит в событие еще один параметр, который потом можно достать макросом %&lt;subnets&gt;</p>
]]></description><link>https://forum.netxms.org/post/34207</link><guid isPermaLink="true">https://forum.netxms.org/post/34207</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 17 Mar 2025 15:40:11 GMT</pubDate></item></channel></rss>