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

HTTP Service Check

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 20.9k 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.
  • M
    M
    MEVALDEZ
    wrote on last edited by
    #1

    NETXMS Team and Users Group,

    I am using the following HTTP Service Check format listed below. My question is can NETXMS view the keepalive.html page inside the "/folder/"?

    ServiceCheck.HTTP(xxx.xxx.xxx.xxx,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")

    I keep getting a number "3" response or "bad server's response".
    ----------------------------------------------------------------------------------------------------

    Other HTTP Service Checks I have setup on this same server are using the format below and they are working just fine:

    ServiceCheck.HTTP(xxx.xxx.xxx.xxx,80,/index.html,www.test.com,"^HTTP/1\.[01] 200.*")

    I wonder if the extra "/folder/" makes a difference.

    Thanks,

    Mauricio

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

      Hello.

      Yes, it should work perfectly well.

      Actually, I've verified your check and it works fine:

      alk@wall:~$ /tmp/nx/bin/nxget -w 100 localhost 'ServiceCheck.HTTP(127.0.0.1,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")'
      3
      alk@wall:~$ mkdir /var/www/default/folder/
      alk@wall:~$ touch /var/www/default/folder/keepalive.html
      alk@wall:~$ /tmp/nx/bin/nxget -w 100 localhost 'ServiceCheck.HTTP(127.0.0.1,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")'
      0
      

      Please check that URL is available, also check with some tool like wget or curl.

      You can also send me a private message with problematic URL (if it's publicly available) and I'll check it myself.

      1 Reply Last reply
      0
      • M
        M
        MEVALDEZ
        wrote on last edited by
        #3

        Problem solved. Thank you very much.

        M

        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