usr/lib/observium_agent/scripts-available/proxmox-qemu aktualisiert

This commit is contained in:
ageissler
2024-12-30 18:08:38 +01:00
parent fc5a348b59
commit d840cf9dc7

View File

@@ -33,7 +33,7 @@ for ((i=0; i<$count; i++)); do
if [[ -z "$ostype" || "$ostype" == *"is not running"* || "$ostype" == *"QEMU guest agent configured"* ]]; then if [[ -z "$ostype" || "$ostype" == *"is not running"* || "$ostype" == *"QEMU guest agent configured"* ]]; then
ostype=$var2 ostype=$var2
if [[ -z "$ostype" ]]; then if [[ -z "$ostype" ]]; then
ostype="$var3 (no further information yet)" ostype="$var3 (more precise information not yet available)"
fi fi
else else
sed -i "s|$vmid:.*|$vmid:$var1|" $CACHE sed -i "s|$vmid:.*|$vmid:$var1|" $CACHE