fix(led-pulse): Check HAProxy on host instead of LXC container
HAProxy runs on the host, not in an LXC container. The LED pulse script was incorrectly checking `lxc-attach -n haproxy -- pgrep haproxy` which always failed, causing constant SPUNK ALERT red LED flashing. Changed to check host process directly with `pgrep haproxy`. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1ded6f155a
commit
8a51a3e655
@ -32,7 +32,8 @@ check_critical_services() {
|
||||
local critical=0
|
||||
|
||||
# HAProxy must be running (PERMANENT priority)
|
||||
if ! lxc-attach -n haproxy -- pgrep haproxy >/dev/null 2>&1; then
|
||||
# Check host process (HAProxy runs on host, not in LXC)
|
||||
if ! pgrep haproxy >/dev/null 2>&1; then
|
||||
critical=1
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user