<?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[Questions about Netxms Console]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<ul>
<li>I would like to know how i can do to send alarms or events in the form of SNMP Trap from the Agent?</li>
<li>Also, i would like to know how we can retrieve a custom attribute when we are on the server and that we receive an event. And how we can show it in the event log?</li>
</ul>
<p dir="auto">Thank you very much</p>
]]></description><link>https://forum.netxms.org/topic/809/questions-about-netxms-console</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:42:14 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/809.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Jan 2010 16:01:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Questions about Netxms Console on Wed, 13 Jan 2010 21:48:02 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much</p>
]]></description><link>https://forum.netxms.org/post/3813</link><guid isPermaLink="true">https://forum.netxms.org/post/3813</guid><dc:creator><![CDATA[ophelie6989]]></dc:creator><pubDate>Wed, 13 Jan 2010 21:48:02 GMT</pubDate></item><item><title><![CDATA[Reply to Questions about Netxms Console on Fri, 08 Jan 2010 14:21:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">You cannot send SNMP traps from agent. Agent can only communicate with NetXMS server using it's own protocol. You can however send traps from NetXMS server simply by defining command type action and calling any trap sending utility, for example snmptrap from net-snmp package.</p>
<p dir="auto">You can retrieve node's custom attributes in scripts in event processing policy in two ways:</p>
<ol>
<li>If name of your attribute conforms to NXSL identifier naming conventions (contains only letters, digits, _ and $ and do not start with digit), you can access any attribute as attribute of node object. For example, to access custom attribute named attr1, you can use</li>
</ol>
<pre><code>$node-&gt;attr1
</code></pre>
<ol start="2">
<li>You can use NXSL function GetCustomAttribute. For example, to custom attribute named attr2, you can use</li>
</ol>
<pre><code>GetCustomattribute($node, "attr2")
</code></pre>
<p dir="auto">Also, if you just need to add custom attribute's value to event or alarm message, you can use macro %{attribute_name}, for example, you can define alarm message as</p>
<pre><code>Some alarm - custom attribute attr1 goes here: %{attr1}
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/3785</link><guid isPermaLink="true">https://forum.netxms.org/post/3785</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 08 Jan 2010 14:21:14 GMT</pubDate></item></channel></rss>