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.HTTP

ServiceCheck.HTTP

Scheduled Pinned Locked Moved Support
9 Posts 5 Posters 67.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.
  • N
    N
    Nikk
    wrote on last edited by
    #1

    Hi,

    I read through the entire forum, but did not find anything to my problem, so I came here.
    I tried to configure ServiceCheck.HTTP, but all the time I'm getting status 3 - bad server's response.
    Here is my check:
    ServiceCheck.HTTP(192.168.0.150,80,/index.html,www.domain.lv,"^HTTP/1\.[01] 200 .*")
    Actually I can't successfully check any web, maybe I don't realy know how.
    Subagent is loaded successfully and other service checks are working.
    Where is my configuration mistake?

    Thanks in advance,
    Nikk

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      I suggest you to switch to new "netsvc" subagent. Right now it's quite basic, but usually works better than old portcheck.

      netsvc provide single DCI: Service.Check(URL, regexp)

      If second parameter is omitted, default "^HTTP/1.[01] 200 .*" will be used.

      Some samples:

      Service.Check(https://netxms.org/)
      Service.Check(https://netxms.org/, text)
      Service.Check(http://user:[email protected]/)
      Service.Check(ftp://user:[email protected]/file, text)
      Service.Check(sftp://user:[email protected]/another.file, text)

      Check http://curl.haxx.se/docs/manpage.html#URL for details
      Some protocol can be disabled in your particular build, to list them start agent with debug level 3 or higher and look for following lines:

      [12-Dec-2013 14:17:18.578] [DEBUG] cURL version: libcurl/7.30.0 SecureTransport zlib/1.2.5
      [12-Dec-2013 14:17:18.578] [DEBUG] Supported protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
      [12-Dec-2013 14:17:18.578] [INFO ] Subagent "netsvc.nsm" loaded successfully
      
      1 Reply Last reply
      0
      • N
        N
        Nikk
        wrote on last edited by
        #3

        Looks nice!
        How do I enable this subagent? I tried SubAgent = netsvc.nsm on windows machine, but received: Error loading subagent module "netsvc.nsm": The specified module could not be found.
        Should I rebuild server to acquire this module?

        Nikk

        1 Reply Last reply
        0
        • R
          R
          raypetter
          wrote on last edited by
          #4

          I'm also interested in using netsvc, but I can't find it. I've used the deb packages.

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

            Hi!

            Seems that both Windows and Debian packages was built with netsvc subagent omitted. I'll build both versions a bit later and post a download link.

            Best regards,
            Victor

            1 Reply Last reply
            0
            • Dani@M3TU
              Dani@M3TU
              Dani@M3T
              wrote on last edited by
              #6

              Should netsvc be an external modul like the other subagents? We compiled on linux from sources, but there is no such subagent too


              subagents.png

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

                netsvc subagent need libcurl, and so it will only built if libcurl development package is installed. Try to install libcurl-devel package and run configure and make again.

                Best regards,
                Victor

                1 Reply Last reply
                0
                • Dani@M3TU
                  Dani@M3TU
                  Dani@M3T
                  wrote on last edited by
                  #8

                  Hi

                  I didn't know that (is it somewhere documented?) but compiled with libcurl-devel and activation of netsvc subagent in agent config I can see the new DCI. Now I have to explore the functionality of this subagent. thanks

                  Dani

                  1 Reply Last reply
                  0
                  • R
                    R
                    raypetter
                    wrote on last edited by
                    #9

                    No rush on my part. I'll wait until you have the pacakges ready Victor. Thanks.

                    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