Fix: Remove VM 100 from SSH checks (Home Assistant has no SSH), disable Ceph monitoring (not in use)
This commit is contained in:
@@ -5,10 +5,10 @@ set -euo pipefail
|
|||||||
SEND_NTFY="/usr/local/bin/send-ntfy.sh"
|
SEND_NTFY="/usr/local/bin/send-ntfy.sh"
|
||||||
|
|
||||||
# VM configurations: "VMID:NAME:IP"
|
# VM configurations: "VMID:NAME:IP"
|
||||||
|
# Note: VM 100 (haos14.0) excluded - Home Assistant OS doesn't have SSH, monitored via thin pool instead
|
||||||
VMS=(
|
VMS=(
|
||||||
"101:debianvm:DEBIANVM"
|
"101:debianvm:DEBIANVM"
|
||||||
"282:ubuntu-server-xfce:ubuntu-server-xfce"
|
"282:ubuntu-server-xfce:ubuntu-server-xfce"
|
||||||
"100:haos14.0:haos14"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for vm_config in "${VMS[@]}"; do
|
for vm_config in "${VMS[@]}"; do
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Monitor Ceph cluster health
|
# Monitor Ceph cluster health
|
||||||
set -euo pipefail
|
# DISABLED: Ceph is not being used for storage (using NFS/CIFS/LVM instead)
|
||||||
|
# Ceph services are running but unconfigured (0 OSDs), causing false warnings
|
||||||
|
|
||||||
SEND_NTFY="/usr/local/bin/send-ntfy.sh"
|
set -euo pipefail
|
||||||
|
|
||||||
# Check if Ceph is installed
|
# Check if Ceph is installed
|
||||||
if ! command -v ceph &>/dev/null; then
|
if ! command -v ceph &>/dev/null; then
|
||||||
@@ -10,6 +11,18 @@ if ! command -v ceph &>/dev/null; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if Ceph storage is actually being used
|
||||||
|
CEPH_STORAGE=$(pvesm status 2>/dev/null | grep -i ceph || echo "")
|
||||||
|
|
||||||
|
if [ -z "$CEPH_STORAGE" ]; then
|
||||||
|
# Ceph is not in use, skip monitoring
|
||||||
|
logger -t ceph-monitor "Ceph not in use, monitoring disabled"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Only monitor if Ceph storage is actually configured
|
||||||
|
SEND_NTFY="/usr/local/bin/send-ntfy.sh"
|
||||||
|
|
||||||
# Get Ceph status
|
# Get Ceph status
|
||||||
CEPH_STATUS=$(timeout 10 ceph -s 2>/dev/null || echo "FAILED")
|
CEPH_STATUS=$(timeout 10 ceph -s 2>/dev/null || echo "FAILED")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user