Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAPROXY stats: lan binding instead of localhost

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 800 Views
    Loading More Posts
    • 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.
    • A
      aniodon
      last edited by aniodon

      Hello everyone !

      I would like to read HAPROXY stats in our monitoring tool : PRTG.
      I found out that there is no straight way to read the stats, so someone wrote a PowerShell plugin (http://lazic.info/josip/post/monitor-haproxy-via-prtg/) to parse the stats dashboard. that's not fully clean but it will do the work.

      So, to make this happen, i would need to bind the stats of haproxy page to the LAN interface instead of localhost, as my probe executing the PowerShell script will be located on lan.
      But the haproxy package gui do not allow binding somewhere else than on localhost.

      I tried to edit manually the conf, but it is overwritten everytime. I also tried some black magic NAT to point to localhost through lan… but hey… what did i expected… ;)

      Well, if someone have an idea, thanks in advance !

      Olivier

      P 1 Reply Last reply Reply Quote 0
      • P
        PiBa @aniodon
        last edited by

        @aniodon
        Create a frontend on the interface you like and configure a backend on it with stats enabled there. It allows you to run your own stats frontend on a url you like and with authentication and client-certificate requirements if desired. No need to try and tweak the 'internal' stats page.

        1 Reply Last reply Reply Quote 2
        • A
          aniodon
          last edited by

          Hello PiBa !

          Thanks for your time,
          can't believe it was that simple, but it works great !!!!
          thank you again !!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.