MonitorZFS
==Script Monitoramento ZFS==
#!/bin/bash
#variaveis
D=`zpool status | grep state |awk '{print $2}'`
#Condicional
if [ $D != ONLINE ]
then
zpool status | sendemail -f log@lupainformatica.com.br -t noc@lupainformatica.com.br -u "Lupa - ALERTA ZFS - proxmox56" -o tsl=auto -s webmail.lupainformatica.com.br:587 -xu log@lupainformatica.com.br -xp lupa*2010!
else
echo "tudo certo"
fi
[[Categoria:Scripts]]