Open
Description
Hi,
I just tested your check script for haproxy and it's a great piece of work, thanks!
There is one problem: it only checks one frontend, but we have multiple configured :(
here is the debug output for our case:
# /usr/lib/nagios/plugins/check_haproxy --debug
get_data{} is reading data from HAProxy
build_checks{} building BACKEND check for elasticsearch
build_checks{} building BACKEND check for redis
build_checks{} building FRONTEND check for stats
check_frontends{} is starting check on frontends
check_frontends{} checking FRONTEND stats
check_frontends{} running OPEN check
check_frontends{} running Sessions check
check_frontends{} found 1 (limit 8000); thresholds are 6000 (warn) 7200 (crit)
check_backends{} is starting check on backends
check_backends{} checking BACKEND elasticsearch
check_backends{} found 3 up, 0 down, 0 disabled (3 total)
check_backends{} found 3 (limit 3); thresholds are 5 (warn) 2 (crit)
check_frontends{} running Sessions check
check_backends{} found 0 (limit 800); thresholds are 600 (warn) 720 (crit)
check_backends{} checking BACKEND redis
check_backends{} found 1 up, 1 down, 0 disabled (2 total)
check_backends{} found 1 (limit 2); thresholds are 5 (warn) 2 (crit)
check_frontends{} running Sessions check
check_backends{} found 0 (limit 800); thresholds are 600 (warn) 720 (crit)
check_servers{} is starting check on servers
check_servers{} checking SERVER els01 on BACKEND elasticsearch
check_servers{} checking SERVER els02 on BACKEND elasticsearch
check_servers{} checking SERVER els03 on BACKEND elasticsearch
check_servers{} checking SERVER red01 on BACKEND redis
check_servers{} checking SERVER red02 on BACKEND redis
check_haproxy CRITICAL - Backend redis servers (up: 1, down 1, disabled 0, total 2) | frontend_stats_sessions=1;6000;7200;;8000 backend_elasticsearch_servers_up=3;5;2;;3 backend_elasticsearch_servers_down=0;;;;3 backend_elasticsearch_servers_disabled=0;;;;3 backend_elasticsearch_sessions=0;600;720 backend_redis_servers_up=1;5;2;;2 backend_redis_servers_down=1;;;;2 backend_redis_servers_disabled=0;;;;2 backend_redis_sessions=0;600;720
stats is the last frontend of our three frontends on the stats page, maybe the bug is related to that fact?
Can you help us with that problem?
thanks and have a great day!
cheers Ringo
Metadata
Assignees
Labels
No labels
Activity