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 issue

ServiceCheck.HTTP issue

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 36.6k 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.
  • D
    D
    DanG
    wrote on last edited by
    #1

    Hi

    Our Linux hosting server hanged recently (extremely rare), however I did not receive any alarms for the ServiceCheck.HTTP that was configured for it.

    Today I looked further into it... I’ve set a ServiceCheck.HTTP to monitor a web site (apache) on my machine. When I stop the web daemon, the DCI threshold triggers as expected. However, if I disconnect the server from the network no triggering occurs. Is this by design or is this a bug?

    Regards,

    Dan

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

      Hi!

      Could be either a bug or configuration problem. I suppose that TCP connection timeout (for agent to web server connection) is longer than server timeout for agent communication, and so server just didn't wait long enough to get value for ServiceCheck.HTTP parameter, and because there was no new value, threshold was not triggered. I suggest to 1) specify reasonable but short connection timeout in ServiceCheck.HTTP parameter; 2) ad additional threshold for data collection error.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • D
        D
        DanG
        wrote on last edited by
        #3

        Hi Victor,

        Thanks for the prompt reply.

        I changed the following:

        • server configuration variable AgentCommandTimeout set to 5000;
        • added the following to nxagentd.conf:
                  *portCheck
                  Timeout = 4000
          The above solved the issue – thank you. So no bug, but is this by design? My settings before the change (I believe them to be the default) where 2 seconds on the server and 30 second on the portCheck agent. Do these not cause issues for other users?

        Kind regards,
        Dan

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

          Hi!

          No one complaining so far 🙂 I agree that this is a flaw in default configuration. I'll change default values of AgentCommandTimeout and portcheck timeout.

          Best regards,
          Victor

          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