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. ServiceCheck.Custom, DNS-names not resolved

ServiceCheck.Custom, DNS-names not resolved

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 26.5k 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.
  • O
    O
    obscenum
    wrote on last edited by
    #1

    Hi!

    I'm trying to monitor some external websites/-services by using the ServiceCheck.Custom-parameter on the NetXMS server.
    But if I use DNS-names I get response code 2 "Cannot connect to target", using IP-address works fine.
    DNS-names works from the server (web browser, ping etc).

    Any suggestions on what maybe wrong much appreciated?

    Cheers
    Opie

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

      Hi!

      Yes, there is a bug in portcheck subagent - you can only use IP address. I already fix that. If you need it before next release, I can provide updated subagent binary. If you are building NetXMS from source, you can replace inet_addr with ResolveHostNameA in file src/agent/subagents/portcheck/net.cpp line 40 and rebuild.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • O
        O
        obscenum
        wrote on last edited by
        #3

        I run NetXMS in a Windows-only network with the binarys downloaded from the NetXMS website.
        If you can provide an intermediate version that would be great, if not I'll just wait for the next official release.

        Thank You

        Cheers
        Opie

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

          No problem, I'll build intermediate binary. Are you using 32 or 64 bit version?

          Best regards,
          Victor

          1 Reply Last reply
          0
          • O
            O
            obscenum
            wrote on last edited by
            #5

            Great, I use the 64-bit version on Windows 8.1.

            Cheers
            Opie

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

              Updated subagent attached.

              Best regards,
              Victor


              portcheck.nsm

              1 Reply Last reply
              0
              • O
                O
                obscenum
                wrote on last edited by
                #7

                Thank You kindly good Sir, works like a charm!  ;D

                Cheers
                Opie

                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