fix waiting for events triggering notifications

This commit is contained in:
Derek Macias 2015-12-21 00:05:41 -07:00
parent d8452468a5
commit 905dc59502

View File

@ -5,7 +5,8 @@ exec /usr/bin/tail -n 0 -F /var/log/syslog | \
while read LINE;
do
[[ "$LINE" != *$prog* ]] || [["$LINE" == *"Waiting for events"*]] && continue
[[ "$LINE" == *"Waiting for events"* ]] && continue
[[ "$LINE" != *$prog* ]] && continue
sleep 1 |
exec /usr/local/emhttp/webGui/scripts/notify -s "Notice [$HOSTNAME]" -d "$(echo "$LINE" | sed -e 's/.*ipmievd: //')" -i "warning" && continue 2
done