Ad Widget

Collapse

HTTP query from Agent

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BigSmooth
    Member
    • Jun 2023
    • 46

    #1

    HTTP query from Agent

    Hello,
    Beside using a script, would it be possible to run an http query from agent?
    I would need this as the web server (indexing server) is not reachable from outside the monitored server and only locally (with localhost).
    Thanks,
    Olivier
  • Answer selected by BigSmooth at 22-12-2023, 11:11.
    Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    For a simple query -web.page.get

    Comment


    • PeterZielony
      PeterZielony commented
      Editing a comment
      I Forgot about this one ...
  • PeterZielony
    Senior Member
    • Nov 2022
    • 146

    #2
    No.

    Only scripting

    Hiring in the UK? Drop a message

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      For a simple query -web.page.get

      Comment


      • PeterZielony
        PeterZielony commented
        Editing a comment
        I Forgot about this one ...
    • BigSmooth
      Member
      • Jun 2023
      • 46

      #4
      Thanks Semiadmin
      I see it includes headers. What would be the best preprocessing to get only the body?

      Comment

      • Semiadmin
        Senior Member
        • Oct 2014
        • 1625

        #5
        It depends on the body. For example, regex
        Code:
        #([\s\S]*)                           \1
        if you get a prometheus exporter and a body starts with a # symbol​

        Comment

        Working...