<?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[Config Poll Hook script error help]]></title><description><![CDATA[<p dir="auto">I am using the following script to rename the node to the discovered snmp name </p>
<p dir="auto">9  if (($node.snmpSysName != "") and ($node.snmpSysName !=null))<br />
10 {<br />
11 return $object.rename($node-&gt;snmpSysName);<br />
12 }</p>
<p dir="auto">I always get this error and Im not sure why as it compiles and runs without issue<br />
Script (Hook::ConfigurationPoll) execution error: Error 14 in line 9: Function or operation argument is not an object</p>
]]></description><link>https://forum.netxms.org/topic/8198/config-poll-hook-script-error-help</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:07:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8198.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Jun 2025 20:53:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Config Poll Hook script error help on Fri, 20 Jun 2025 12:15:50 GMT]]></title><description><![CDATA[<p dir="auto">Objects.Nodes.ResolveNames - this works only when node is created. <br />
There's Objects.Nodes.SyncNamesWithDNS, but this one is taking names from DNS only (also not that activating this parameter currently requires server restart which contradicts with what UI is saying - it's a bug)</p>
]]></description><link>https://forum.netxms.org/post/34534</link><guid isPermaLink="true">https://forum.netxms.org/post/34534</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 20 Jun 2025 12:15:50 GMT</pubDate></item><item><title><![CDATA[Reply to Config Poll Hook script error help on Wed, 18 Jun 2025 21:32:11 GMT]]></title><description><![CDATA[<p dir="auto">Thank you.. Is this still needed ?  I see that the server config has the following </p>
<p dir="auto">Objects.Nodes.ResolveNames   according to the description this resolves using DNS,SNMP system name ...</p>
]]></description><link>https://forum.netxms.org/post/34533</link><guid isPermaLink="true">https://forum.netxms.org/post/34533</guid><dc:creator><![CDATA[gmonk63]]></dc:creator><pubDate>Wed, 18 Jun 2025 21:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to Config Poll Hook script error help on Wed, 18 Jun 2025 21:21:55 GMT]]></title><description><![CDATA[<p dir="auto">This hook is not limited to Nodes, so $node can be null while $object is set.<br />
If you are interested in nodes only, just check for $node:</p>
<pre><code>if ($node and not $node.snmpSysName.isEmpty()) {
   $node.rename($node.snmpSysName);
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/34532</link><guid isPermaLink="true">https://forum.netxms.org/post/34532</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 18 Jun 2025 21:21:55 GMT</pubDate></item></channel></rss>