Fix: Remove VM 100 from SSH checks (Home Assistant has no SSH), disable Ceph monitoring (not in use)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
# 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
|
||||
if ! command -v ceph &>/dev/null; then
|
||||
@@ -10,6 +11,18 @@ if ! command -v ceph &>/dev/null; then
|
||||
exit 0
|
||||
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
|
||||
CEPH_STATUS=$(timeout 10 ceph -s 2>/dev/null || echo "FAILED")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user