Debugging
This commit is contained in:
@@ -38,12 +38,14 @@ while IFS= read -r line; do
|
|||||||
# echo "$line" # uncomment for debugging
|
# echo "$line" # uncomment for debugging
|
||||||
if echo "$line" | grep -qE "${ERROR_PATTERN}"; then
|
if echo "$line" | grep -qE "${ERROR_PATTERN}"; then
|
||||||
log "Detected EHOSTUNREACH for Ollama (${OLLAMA_HOST}:${OLLAMA_PORT})."
|
log "Detected EHOSTUNREACH for Ollama (${OLLAMA_HOST}:${OLLAMA_PORT})."
|
||||||
|
echo ok
|
||||||
|
|
||||||
# ... in your remediation block:
|
# ... in your remediation block:
|
||||||
if [[ -n "$WOL_MAC" ]]; then
|
if [[ -n "$WOL_MAC" ]]; then
|
||||||
log "Sending WOL to $WOL_MAC via ${WOL_BCAST}:${WOL_PORT}"
|
log "Sending WOL to $WOL_MAC via ${WOL_BCAST}:${WOL_PORT}"
|
||||||
send_wol
|
#send_wol
|
||||||
fi
|
fi
|
||||||
|
echo ok
|
||||||
# --- remediation examples (optional) ---
|
# --- remediation examples (optional) ---
|
||||||
# if [[ -n "$WOL_MAC" ]]; then
|
# if [[ -n "$WOL_MAC" ]]; then
|
||||||
# log "Sending WOL to ${WOL_MAC}"
|
# log "Sending WOL to ${WOL_MAC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user