NetXMS Support Forum

English Support => General Support => Topic started by: lweidig on May 19, 2017, 09:41:08 PM

Title: Agent on server not connecting - 2.1RC1
Post by: lweidig on May 19, 2017, 09:41:08 PM
We are running Ubuntu 16.04 from packages.  The agent running on the server will NOT however connect to the server itself.  Running the agent with -D 9 -f we only see:

[19-May-2017 13:35:09.775] [DEBUG] Incoming connection from <serverIp>
[19-May-2017 13:35:09.776] [DEBUG] Connection from <serverIp> rejected

The nxagentd.conf file is very basic:

MasterServers = 127.0.0.1
FileStore = /tmp
StartupDelay = 30
EnableActions = yes
SubAgent = portcheck.nsm
*portCheck
Timeout = 5000
*ping
Timeout = 5000

I see the modules all loading and things seem fine.  Have tried using the real IP for the MasterServers and no help.  Tried also debugging the server and did not get anything that helped from that either.
Title: Re: Agent on server not connecting - 2.1RC1
Post by: Victor Kirhenshtein on June 09, 2017, 02:26:30 PM
Hi,

you should add server's real IP address to MasterServers as well.

Best regards,
Victor
Title: Re: Agent on server not connecting - 2.1RC1
Post by: lweidig on June 09, 2017, 03:38:58 PM
This did indeed resolve the issue.  Thanks!