automatic node name change

Started by m37r0, September 09, 2013, 03:42:05 PM

Previous topic - Next topic

m37r0

Hi

Quote[09.09.2013 14:21:28] **** Poll request sent to server ****
[09.09.2013 14:21:28] Poll request accepted
[09.09.2013 14:21:28] Starting configuration poll for node MikroTik
[09.09.2013 14:21:28] Checking node's capabilities...
[09.09.2013 14:21:28]    Checking NetXMS agent...
[09.09.2013 14:21:28]    Checking SNMP...
[09.09.2013 14:21:28]    SNMP agent is active (version 2c)
[09.09.2013 14:21:28]    System description changed to RouterOS RB433
[09.09.2013 14:21:28]    System name changed to KardasWysyl
[09.09.2013 14:21:36] Capability check finished
[09.09.2013 14:21:36] Checking interface configuration...
[09.09.2013 14:21:37] Interface configuration check finished
[09.09.2013 14:21:37] Checking node name
[09.09.2013 14:21:37] Node name is OK
[09.09.2013 14:21:37] Finished configuration poll for node MikroTik
[09.09.2013 14:21:37] Node configuration was changed after poll
[09.09.2013 14:21:37] **** Poll completed successfully ****

my node name was MikroTik, so i change it on router to right one "KardasWysyl"
next i right click>>Poll>>configuration. After this node "MikroTik" is still "MikroTik"

NETXMS can not change node names automaticly ? or where to do that ?

p.s. i hope You know what i want to write (sorry for english)

Victor Kirhenshtein

Hi!

"system name" is a node property, not a node object name in console. You have couple of options here:

1. if you have correct DNS records, you can turn on DNS node sync by setting server configuration variable SyncNodeNamesWithDNS to 1.

2. If you want to keep node name consistent with system name read from node, you can use the following hook script for configuration polls:


if (($node->snmpSysName != null) && ($node->snmpSysName != ""))
   RenameObject($node, $node->snmpSysName);


Best regards,
Victor

m37r0