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. Cannot connect to NetXMS agent (Connect failed)

Cannot connect to NetXMS agent (Connect failed)

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 26.8k 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.
  • B
    B
    BHMick
    wrote on last edited by
    #1

    Hello,

    I have a problem with the netXMS agent, when I try to make a poll request. I get messages...

    ----------------------------------------------
    Poll request accepted.......
    Starting configuration.....
    Checking node's capabilities....

         Checking NetXMS agent....
          Cannot connect to NetXMS agent (Connect failed)
         Checking SNMP....
          SNMP agent is active (version 2c)
          etc
          etc
          OK

    What else do I need to configure .... Do I need perhaps conf (Agent Conf and Server Conf on web management Console?)

    Please help ...

    Thanks, best regards.

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Hi!

      So here's a few prerequisites for server to connect to the agent:

      • agent process should be running
      • no firewall should be blocking agent's port (it's TCP port 4700)
      • In nxagentd.conf configuration file MasterServers parameter should include IP address of your NetXMS server
      1 Reply Last reply
      0
      • B
        B
        BHMick
        wrote on last edited by
        #3

        Hello Filipp,

        I set everything except the firewall, how do I turn off the firewall, btw (Netxms 4.1.420 on Linux Ubuntu)?

        Thanks, regards.

        1 Reply Last reply
        0
        • B
          B
          BHMick
          wrote on last edited by
          #4

          Hello,

          I tried turning off the firewall, same thing again...

          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #5

            try running this in command line of your server:

            telnet ip_addess 4700
            

            where ip_address is the address of your agent. 
            What output would this command produce?

            1 Reply Last reply
            0
            • B
              B
              BHMick
              wrote on last edited by
              #6

              When I run this command....

              ____________________
              Output:

              Trying 192.168.x.x ...
              Connected to 192.168.x.x
              Escape character...
              Connection closed by foreing host.
              ___________________

              But. when I edit in nxagent.conf and set:
              MasterServers=192.168.x.x.
              Save and Start again, it automatically returns the IP address 127.0.0.1 in the web  management console.

              The agent is active when the address is 127.0.0.1. but there is no communication with the nodes, when I change the server address to 192.168.x.x then I get an error. (Cannot connect - Internal error)

              (agent status: unreachable, return IP address on 127.0.0.1)

              When I manually set the agent's ip address to 192.168.x.x, the agent is active, but it is set automatically:

              PrimaryHost Name=127.0.0.1
              Primary IP= 192.168.x.x
              and I get a message (internal error) - NATIVE AGENT IS NOT RESPONDING

              ----------------------------------------------------------------------------

              Should I perhaps set up a situation like this:
              nxagentd.conf (edit)

              MasterServers=127.0.0.1/8,192.168.x.x
              It is currently:
              MasterServers=192.168.x.x

              I don't know what to do anymore....???

              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