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. Discovery through proxy?

Discovery through proxy?

Scheduled Pinned Locked Moved Support
22 Posts 3 Posters 167.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.
  • Z
    Z
    Zebble
    wrote on last edited by
    #12

    Thanks Victor!

    Running that script on the proxy node produces a long list of MACs with IP addresses in the correct subnet.

    The proxy node for Zone 1 is in Zone 1.  I assumed this was the correct way to configure it when the proxy uses a Tunnel with Certificates?

    -Zeb

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

      Hi,

      I just created clean system, added new zone, single node as proxy in it, and passive discovery works as expected. Below are screenshots from my configuration (and you can see object tree in zone "Test" being populated with devices).
      Could you please make clean system again, set debug level to 6 on both agent and server, add only proxy node, enable passive discovery, and send me server an agent logs?

      Best regards,
      Victor


      proxy_agent_config.png

      discovery.png

      zone_config.png

      1 Reply Last reply
      0
      • Z
        Z
        Zebble
        wrote on last edited by
        #14

        Thanks Victor,

        I will give this a try shortly.  I'm using an agent to server tunnel with certificates for Zone 1.  Do you think that might make a difference?

        1 Reply Last reply
        0
        • Z
          Z
          Zebble
          wrote on last edited by
          #15

          I've attached the requested logs.

          I tried a non-tunnel connection to the proxy agent and still the same problems.

          -Zeb

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

            Hi,

            from server log it looks like server considers all nodes discovered from ARP cache as unreachable. Just in case - are you running proxy agent as root? Also, are you sure that devices in remote zone accept SNMP requests from proxy agent IP address and that community strings are correct?

            Best regards,
            Victor

            1 Reply Last reply
            0
            • Z
              Z
              Zebble
              wrote on last edited by
              #17

              Thanks Victor,

              • running proxy agent as root
              • devices in remote zone are accepting SNMP requests for anything in the local subnet (public community)

              What did you see in the log that indicated this was a problem?  I didn't see anything that specific...

              -Zeb

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

                Actually I didn't immediately notice that those addresses are in zone 0. Lines like those:

                2020.12.30 12:46:06.029 *D* [snmp.discovery    ] SnmpCheckCommSettings(192.168.1.5): failed
                2020.12.30 12:46:06.030 *D* [obj.poll.node      ] AcceptNewNode(192.168.1.5): host is not reachable

                I'll double check log tomorrow.

                Best regards,
                Victor

                1 Reply Last reply
                0
                • Z
                  Z
                  Zebble
                  wrote on last edited by
                  #19

                  Just did a fresh install of the newly released 3.7.95 and am still seeing the same behaviour.

                  Is there any way to check what's in the node discovery queue?  I've tried to use what I thought were relevant server commands but the lists were empty.  "Show queues" does show that there are just under 300 items in the node poller queue...

                  Is there any way to prevent discovery in specific zones?  I assume this can be done through a filter script.  I'll have to dig, but would be good to solve the discovery issue first.

                  FYI, the server console from the Tools menu seems to have disappeared in 3.7.95.  I'm using nxcmd instead.

                  Thanks again.

                  -Zeb

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

                    Regarding console from Tools menu - check "Access server console" user right.

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

                      @zebble said in Discovery through proxy?:

                      FYI, the server console from the Tools menu seems to have disappeared in 3.7.95.  I'm using nxcmd instead.

                      Make sure you are using Java 11 - it seems that this plugin is incompatible with Java 8.

                      Best regards,
                      Victor

                      1 Reply Last reply
                      0
                      • Z
                        Z
                        Zebble
                        wrote on last edited by
                        #22

                        Thanks to Victor's help, all this required was some tuning on the NetXMS server.  Turning on parallel processing and increasing the Discovery.BaseSize from 1 to 8 seems to have helped immensely.  The root cause seems to be the large number of subnets we had on our Default zone.  It couldn't keep up with the discovery process for subsequent zones.

                        I am now having an issue with discovery filters.  We want to only add devices that have SNMP enabled or the Agent installed.  However, when we turn these filters on in 3.7.116, nothing gets added.  If I restrict it to active scan only on a single test IP, and then turn off all filters, the device with agent gets added as expected.

                        If I check debug logs on the proxy agent, it does ping the device but never seems to try to connect via SNMP or Agent.

                        What it looks like is that if the filter is set to SNMP or Agent only, it only attempts a ping scan and since it hasn't seen it so far as an SNMP or Agent device, it doesn't bother scanning (a Catch 22).

                        -Zeb

                        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