Check HA-Proxy Status

Introduction

check_haproxy_health show status and connections count on frontend and backend.

Syntax

______________________________________________________________________

CHECK_HAPROXY_STATUS
v1.8

(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3

https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_haproxy_status.html
______________________________________________________________________

Check HA Proxy statistics on frontend and backend.
It shows if the status is OPEN or UP and show counts of current connectons.

The plugin reads /etc/haproxy/haproxy.cfg to detect the required statistics url and get
csv data.
It requires wget to handle the http request.

Non OK values occur:
  UNKNOWN - if /etc/haproxy/haproxy.cfg cannot be read
          - haproxy is not in http mode
          - the url wasn't detected
          - the detected status url doesn't send a response
  ERROR - a frontend status is not OPEN
        - a backend status is not UP

The plugin sends performance data.

SYNTAX:
check_haproxy_status [-h]

OPTIONS:

    -h or --help   show this help.

EXAMPLE:

    check_haproxy_status

Parameters

(none)

Examples

$ check_haproxy_status returns

OK: FRONT: OPEN OPEN OPEN  - 2 (max: 30010) .. BACK: UP UP UP  - 0 (max: 3001)
FRONTEND - 2 BACKEND - 0 FRONTEND - 0 FRONTEND - 0 couchdb-0.example.com - 0 BACKEND - 0 couchdb-0.example.com - 0 couchdb-1.example.com - 0 couchdb-2.example.com - 0 BACKEND - 0  |frontend=2;; frontend-max=30010;; frontend-free=30008;; backend=0;; backend-max=3001;; backend-free=3001;;