We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e0a50c + 7fb107d commit 1773115Copy full SHA for 1773115
sensor-container/sensors.sh
@@ -41,10 +41,16 @@ collect_ssd_temps() {
41
42
# Try to get SMART data (some devices might not support it)
43
if smartctl -i "$dev_path" >/dev/null 2>&1; then
44
- echo "=== $device ===" >> "$output_file"
45
-
46
# Get device model
47
local model=$(smartctl -i "$dev_path" 2>/dev/null | grep "Device Model\|Model Number\|Product:" | head -1 | sed 's/.*: *//')
+
+ # Skip virtual disks (e.g. VIRTUAL-DISK, VBOX, QEMU, VMware)
48
+ if echo "$model" | grep -qiE 'virtual|vbox|qemu|vmware'; then
49
+ continue
50
+ fi
51
52
+ echo "=== $device ===" >> "$output_file"
53
54
if [ -n "$model" ]; then
55
echo "Model: $model" >> "$output_file"
56
fi
0 commit comments