prefix from service description to create same format as with SATA disks
(
"vendor_model_sn")
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: bd5800149eb143241aebb8bc449ad18703a078b0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bd5800149eb143…
Author: Raoul Gunnar Borenius <borenius(a)dfn.de>
Date: Mon Oct 8 11:35:42 2012 +0200
Temperature SMART: removed "SCSI_" prefix from service description to create
same format as with SATA disks ("vendor_model_sn")
Signed-off-by: Raoul Gunnar Borenius <borenius(a)dfn.de>
---
agents/plugins/smart | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/agents/plugins/smart b/agents/plugins/smart
index c9e6682..d5fd458 100755
--- a/agents/plugins/smart
+++ b/agents/plugins/smart
@@ -61,7 +61,7 @@ if which smartctl > /dev/null 2>&1 ; then
[ "$a" == Current -a "$b" == Drive -a "$c" ==
Temperature: ] && echo TEMP=$d
done`
[ -n "$TEMP" ] && CMD="echo 194 Temperature_Celsius 0x0000
000 000 000 Old_age Always - $TEMP (0 0 0 0)"
- DNAME="SCSI_${VEND}_${MODEL}_${SN}"
+ DNAME="${VEND}_${MODEL}_${SN}"
else
CMD="smartctl -d ata -v 9,raw48 -A $D"
fi