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 timeout

Http timeout

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 32.2k 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.
  • J
    J
    jhonnyvey
    wrote on last edited by
    #1

    Hi all,

    Im using ServiceCheck.HTTP to monitor local websites.
    Sometimes we have timeout in these websites.
    When this occour i see message <<< ERROR >>> in dci last values and no value is registered in history.

    Is there any way to set a timeout in that request and register a value?
    Example: if site not response in 5 minutes register value 10 in history.

    I can use too ECS.HttpLoadTime to got response time from site, but without a timeout value and register i cant define some threholds.
    Or tranformation script, like if website not response in 1000 ms write value 1000 so i can make a threhold based in values.

    Tks a lot! 🙂


    error.png

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

      Hi,

      I've added configuration parameter NegativeResponseTimeOnError for portcheck subagent to return negative value instead of data collection error in case of service communication error. Config example:

      MasterServers = 127.0.0.1, ::1, 10.5.0.0/24
      LogFile = /opt/netxms/log/nxagentd.log
      SubAgent = portcheck.nsm
      
      [PORTCHECK]
      NegativeResponseTimeOnError = true
      

      Best regards,
      Victor

      1 Reply Last reply
      0
      • T
        T
        tomaskir
        wrote on last edited by
        #3

        Is creating a threshold on data collection error not enough?
        This is available as a Function in Threshold definition.

        From what I understand from your post, creating an event on data collection error should be enough for what you want to do.

        1 Reply Last reply
        0
        • J
          J
          jhonnyvey
          wrote on last edited by
          #4

          @victor said in Http timeout:

          Hi,

          I've added configuration parameter NegativeResponseTimeOnError for portcheck subagent to return negative value instead of data collection error in case of service communication error. Config example:

          MasterServers = 127.0.0.1, ::1, 10.5.0.0/24
          LogFile = /opt/netxms/log/nxagentd.log
          SubAgent = portcheck.nsm
          
          [PORTCHECK]
          NegativeResponseTimeOnError = true
          

          Best regards,
          Victor

          Victor ,
          I added the parameter.
          Let's see what happens now:)
          Thank you very much.

          tomaskir,
          It's not possible because the error has no return.
          Only appear in dci status, not in event or history.
          Thanks for always trying to help.

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

            I mean that I just added it 🙂 You have to wait for 2.0.3 release or build agent from git repository.

            Best regards,
            Victor

            1 Reply Last reply
            0
            • J
              J
              jhonnyvey
              wrote on last edited by
              #6

              Ops my mistake  ;D
              I will wait for next release 😄
              Tks! 🙂

              1 Reply Last reply
              0
              • T
                T
                tomaskir
                wrote on last edited by
                #7

                You can use a "Data collection error" threshold.

                Of course a data collection has no value and will not show in history, but you can still create a threshold that will generate an event when a data collection error occurs.
                As I mentioned, its available as a Function in Threshold definition.

                Go in an try it out.

                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