Open vmpr opened 7 months ago
@phibos can you help here? is this also in your setup happening? cheers Ringo
Can you see all three frontends if you run the the following command?
echo "show stat" | sudo socat /var/run/haproxy.sock stdio | grep FRONTEND
Maybe you have to change the socket.
Hi @phibos - thanks for your reply, that's the output I`ve got:
echo "show stat" | sudo socat /var/run/haproxy.sock stdio | grep FRONTEND elasticsearch,FRONTEND,,,0,4,8000,71,135099,2605015,0,0,0,,,,,OPEN,,,,,,,,,1,2,0,,,,0,0,0,3,,,,0,123,0,0,0,0,,0,7,123,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,http,,0,3,71,0,0,0,0,,,0,0,,,,,,,0,,,,, redis,FRONTEND,,,0,25,8000,1952269,1923705329,163149004213,0,0,0,,,,,OPEN,,,,,,,,,1,3,0,,,,0,0,0,35,,,,,,,,,,,0,0,0,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,tcp,,0,35,1952269,,0,0,0,,,,,,,,,,,0,,,,, stats,FRONTEND,,,0,5,8000,4417,768558,10740944,0,0,0,,,,,OPEN,,,,,,,,,1,4,0,,,,0,0,0,1,,,,0,4417,0,0,0,0,,0,1,4417,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,http,,0,1,4417,4417,0,0,0,,,0,0,,,,,,,0,,,,,
I can see the frontends with your command, but they don't show up in the checks output:
check_haproxy OK - HAProxy is functioning within established parameters. (1 frontends, 2 backends, 2 servers, 2 services)
@phibos do you have any ideas on how to fix the problem?
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:
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