can i monitor agent through another agent
-
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 workBest Regards
-
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 -
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 = 4700LogFile = /var/log/nxagentd.log
RequireAuthentication = yes
RequireEncryption = yes
SharedSecret = somethingFileStore = /var/nxagentd
EnableProxy = yes
EnableSNMPProxy = yesDataReconciliationBlockSize = 1024
DataReconciliationTimeout = 120000SubAgent = 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 = yesEnabledCiphers = 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.nsmAlso can confirm that the network communication between the two machines is okay. Telnet on port 4700 is possible both directions.
-
Try to run both agents with debug 6 and check what is logged when connection attempt is made.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login