Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. can i monitor agent through another agent

can i monitor agent through another agent

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 24.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    adimitrov
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A
        A
        adimitrov
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

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

          Best regards,
          Victor

          1 Reply Last reply
          0

          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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups