HAProxy – Standardprüfungen und Richtlinien

  • Freigeben Version: Zurich
  • Aktualisiert 31. Juli 2025
  • 1 Minute Lesedauer
  • Agent Client Collector Stellt die folgenden Standardprüfungen und -Richtlinien für bereit HAProxyÜberwachung.

    Tabelle : 1. HAProxy Ereignisrichtlinie
    Typ Prüfung Beschreibung Verwendung Ausgabe
    Event check-haproxy Ruft die Details des ab HAProxy Lastenausgleichsmodul, um zu bestimmen, ob es ausgeführt wird.
    commonchecks    check-haproxy (options)
    -h    host host
    -P    port Port on which the HAProxy server is running
    -A    all services all services
    -q    Path on which HAProxy Stats URI is configured
    -use ssl    ssl

    Verwendungsbeispiel: check-haproxy.rb -h localhost -P 8080 -A true -q stats -use_ssl false

    CheckHAProxy OK: UP: 50% of 4 // services, DOWN: backend/nginx1[L4CON], backend/BACKEND
    Tabelle : 2. HAProxy Metrikrichtlinie
    Typ Prüfung Beschreibung Verwendung Ausgabe
    Metrik metrics-check-haproxy Ruft ab HAProxy Lastenausgleichsmodul-Metriken, um zu bestimmen, ob es ausgeführt wird.
    commonchecks metrics-check-haproxy (options) 
    
    -q host		Path on which HAProxy Stats URI is configured 
    
    -P port		Port on which the HAProxy server is running 
    
    -c host	       host name

    Verwendungsbeispiel: metrics-check-haproxy.rb -q stats -P 8080 -c localhost

    <hostname>.haproxy.frontend.session_current 0 1652265603
    <hostname>.haproxy.frontend.session_total 0 1652265603
    <hostname>.haproxy.backend.session_current 0 1652265603 
    <hostname>.haproxy.backend.session_total 1 1652265603