Cannot connect to NetXMS agent (Internal error)

Started by eliassal, October 29, 2021, 12:26:30 PM

Previous topic - Next topic

eliassal

I am following the video "NetXMS client and basic server settings" at https://wiki.netxms.org/wiki/NetXMS_Video_Tutorial_Series which are a little bit out-of-date, when I try to do poll > configuration
I always get


Quote[29.10.2021 11:14:26] Starting configuration poll for node WIN10-NETXMS
[29.10.2021 11:14:26] Checking node's capabilities...
[29.10.2021 11:14:26]    Checking NetXMS agent...
[29.10.2021 11:14:26]    Cannot connect to NetXMS agent (Internal error)
in spite of the fact that the NetXMS agent service is up and running. NetXMS is running on windows 10

Filipp Sudanov

Most probably this means, that the address of your netxms server is not in MasterServers line of agent configuration.

If the agent is on the same machine as the server, the default configuration for the agent includes MasterServers=127.0.0.1, but the node that is automatically created refers to external address of the machine.

eliassal

Hi Filipp, not sure I understnad what I should do but here ios the config for nxagentd.conf

QuoteMasterServers = 127.0.0.1,::1
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = C:\NetXMS\log\nxagentd.log
FileStore = C:\NetXMS\var
SubAgent = portcheck.nsm
SubAgent = ssh.nsm
SubAgent = winperf.nsm
SubAgent = wmi.nsm
should I change this to something else? for example change 127.0.0.1 to the ip of the NetXMS server?

Filipp Sudanov

In the properties of node, which you are trying to poll under Communications there is "Primary host name". This is the address of agent to which netxms server is connecting. Take this address and add it to MasterServer line of agent config after comma.