NetXMS Support Forum

English Support => General Support => Topic started by: LogicalNZ on October 18, 2017, 03:41:57 AM

Title: Agent to NetXMS connection Issues
Post by: LogicalNZ on October 18, 2017, 03:41:57 AM
Hey All,

Firstly I'm a newbee to NetXMS.

I'm having issues making the agents work. I have installed the agents on 2 x Windows boxes (64bit version). When I add the Node, it does add the Node by comes up with NIC as unknown and looks like the NetXMS cannot communicate to the agents. From the NetXMS server I can ping the machines with the Agents installed no problem.

What am I missing???

Thanks
Title: Re: Agent to NetXMS connection Issues
Post by: LogicalNZ on October 18, 2017, 04:13:47 AM
Further to my post.

I have worked out it is connecting, just not getting any details.

[18.10.2017 14:11:16] **** Poll request sent to server ****
[18.10.2017 14:11:16] Poll request accepted
[18.10.2017 14:11:17] Starting interface names poll for node Alan-PC
[18.10.2017 14:11:17]    Unable to get interface list from node
[18.10.2017 14:11:17] Finished interface names poll for node Alan-PC
[18.10.2017 14:11:17] **** Poll completed successfully ****

Here is another server with the same issue I have a agent installed on;

[18.10.2017 14:15:53] **** Poll request sent to server ****
[18.10.2017 14:15:53] Poll request accepted
[18.10.2017 14:15:53] Starting configuration poll for node LSD-Test
[18.10.2017 14:15:53] Checking node's capabilities...
[18.10.2017 14:15:53]    Checking NetXMS agent...
[18.10.2017 14:15:58] Capability check finished
[18.10.2017 14:15:58] Checking interface configuration...
[18.10.2017 14:15:58] Unable to get interface list from node
[18.10.2017 14:15:58] Interface configuration check finished
[18.10.2017 14:15:58] Checking node name
[18.10.2017 14:15:58] Node name is OK
[18.10.2017 14:15:58] Finished configuration poll for node LSD-Test
[18.10.2017 14:15:58] Node configuration was not changed after poll
[18.10.2017 14:15:58] **** Poll completed successfully ****



What would cause this to fail? It's almost like the NetXMS server cannot get any details from the agent service?
Title: Re: Agent to NetXMS connection Issues
Post by: Victor Kirhenshtein on October 18, 2017, 03:48:11 PM
Hi,

seems that server cannot connect to agent. Try to check agent log (you may need to run agent on higher debug level - 6 should shouw you all communication related messages).

Best regards,
Victor
Title: Re: Agent to NetXMS connection Issues
Post by: LogicalNZ on October 18, 2017, 09:50:25 PM
Ok, I think I'm making progress......

Our NetXMS server is in our datacentre and I have found it seems to have no problem with connecting to a agent in the DC. Our offices are remote to the DC and connected via a VPN. When I pole a machine in my offices the log shows the following error;

19-Oct-2017 07:40:36.117] [INFO ] NetXMS Agent started
[19-Oct-2017 07:42:35.820] [DEBUG] Incoming connection from 14.1.61.XX
[19-Oct-2017 07:42:35.820] [DEBUG] Connection from 14.1.61.XX rejected
[19-Oct-2017 07:43:29.173] [DEBUG] Incoming connection from 14.1.61.XX
[19-Oct-2017 07:43:29.173] [DEBUG] Connection from 14.1.61.XX rejected

So 14.1.61.XX is my offices external IP address. I would say there is some type of IP filtering on the agent that I need to allow the NetXMS server in?

How do I do this?

With thanks (By the way Fantastic product!!!)  - would love to do some training on NetXMS


Update: Fixed by adding MasterServers = 14.1.61.XX in my agent config file :)
Title: Re: Agent to NetXMS connection Issues
Post by: Tursiops on October 25, 2017, 12:21:55 PM
Hi,

You need to allow the server to connect to the agent, by adding a line like this:
MasterServers = <IP NetXMS Server is connecting from>
Then restart the agent and check again.

Cheers