can i monitor agent through another agent

Started by adimitrov, February 21, 2018, 11:00:41 AM

Previous topic - Next topic

adimitrov

Hello Team ,

I am trying to monitor one windows machine which is in the customer environment. I installed NetXMS agent on the machine and configure it to be monitored by the main NetXMS agent in the customer environment. Unfortunately this does not work. Is it limitation that agent cannot monitor another agent or i am mistaken with the configuration ? If i set the name of master server to point at the NetXMS server everything works.

So when the topology is like:

NetXMS server (in our environment) --> Windows Machine (the one that has to be monitored in customer environment) : this one works
NetXMS server (in our environment) --> Main NetXMS agent in customer environment  --> windows Machine that has to be monitored : this does not work

Best Regards

Victor Kirhenshtein

Hi,

I suppose you mean that you are using main NetXMS agent in customer environment as a proxy for target Windows machine. In that case make sure that main agent has configuration option

EnableProxy = yes

in it's configuration file, and that target Windows agent has main agent's IP address listed in MasterServers.

Best regards,
Victor

adimitrov

Hello Victor, team,

Yes, EnableProxy is set to yes and the Master server is set to the IP address of the main agent in the customer environment, here is the whole nxagentd.conf file:

Main Agent nxagentd.conf file:

#
#Sample configuration file for NetXMS agent
#

DebugLevel = 6

Servers = 1.1.1.1
ControlServers = 1.1.1.1
MasterServers = 1.1.1.1
ListenPort = 4700

LogFile = /var/log/nxagentd.log

RequireAuthentication = yes
RequireEncryption = yes
SharedSecret = something

FileStore = /var/nxagentd

EnableProxy = yes
EnableSNMPProxy = yes

DataReconciliationBlockSize = 1024
 
DataReconciliationTimeout = 120000

SubAgent = ping.nsm

*PING


Windows machine:

#
# NetXMS agent configuration file
# Created by agent installer at Fri Feb 10 13:15:39 2017
#

MasterServers = IP.OF.THE.AGENT
LogHistorySize = 100
RequireAuthentication = yes
RequireEncryption = yes

EnabledCiphers = 5
SharedSecret = something
MaxSessions = 1024

EnableSubagentAutoload = yes



ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = {syslog}
FileStore = C:\NetXMS\var
SubAgent = filemgr.nsm
SubAgent = ping.nsm
SubAgent = logwatch.nsm
SubAgent = portcheck.nsm
SubAgent = winperf.nsm
SubAgent = wmi.nsm
SubAgent = ups.nsm


Also can confirm that the network communication between the two machines is okay. Telnet on port 4700 is possible both directions.

Victor Kirhenshtein

Try to run both agents with debug 6 and check what is logged when connection attempt is made.

Best regards,
Victor