Commit 1c4139b2 authored by Fulvio Galeazzi's avatar Fulvio Galeazzi
Browse files

2018-02-27: FG; Renamed files and items.

parent 8c9e973a
UserParameter=custom.dellmd38xx.array.discovery[*],/etc/zabbix/scripts/zbxDellStorageDeviceDiscover.sh $1
UserParameter=custom.dellmd38xx.array.exec[*],/etc/zabbix/scripts/zbxDellStorageStatusCheck.sh $1 --raid $2
UserParameter=custom.dellmd38xx.device.discovery[*],/etc/zabbix/scripts/zbxDellStorageDeviceDiscover.sh $1 --devices
UserParameter=custom.dellmd38xx.array.discovery[*],/etc/zabbix/scripts/zbxDellStorageDiscover.sh $1
UserParameter=custom.dellmd38xx.array.exec[*],/etc/zabbix/scripts/zbxDellStorageDeviceStatus.sh $1 --raid $2
UserParameter=custom.dellmd38xx.device.discovery[*],/etc/zabbix/scripts/zbxDellStorageDiscover.sh $1 --devices
......@@ -255,7 +255,7 @@ if [[ $RET_VAL = 0 ]]; then
done < $KNOWNARRAYS
rm $KNOWNARRAYS
else
echo "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.failed[${raidNameThis}]\" 2" >> $SENDERFILE
echo "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.device.failed[${raidNameThis}]\" 2" >> $SENDERFILE
fi
raidList="$raidCtrlThis"
......@@ -270,7 +270,7 @@ RET_VAL=$?
# in case of error, just send [failed] = 1
# otherwise send all collected data
if [[ $RET_VAL = 0 ]]; then
echo "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.failed[${raidNameThis}]\" 0" >> $SENDERFILE
echo "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.device.failed[${raidNameThis}]\" 0" >> $SENDERFILE
index=0
zbxKey=()
......@@ -305,12 +305,12 @@ if [[ $RET_VAL = 0 ]]; then
if [ ! "$zbxWant[$idx]" ]; then
continue
fi
echo -n "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.${zbxKey[$idx]}[${raidNameThis},${deviceType},${deviceName}]\" " >> $SENDERFILE
echo -n "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.device.${zbxKey[$idx]}[${raidNameThis},${deviceType},${deviceName}]\" " >> $SENDERFILE
echo ${arrayLine[$idx]} >> $SENDERFILE
done
done < $STATUSFILE
else
echo "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.failed[${raidNameThis}]\" 1" >> $SENDERFILE
echo "\"$ZABBIXSOURCE\" \"custom.dellmd38xx.device.failed[${raidNameThis}]\" 1" >> $SENDERFILE
fi
# Send all information to Zabbix using zbbix_sender
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment