fix waiting for events triggering notifications
This commit is contained in:
parent
d8452468a5
commit
905dc59502
|
@ -5,7 +5,8 @@ exec /usr/bin/tail -n 0 -F /var/log/syslog | \
|
||||||
|
|
||||||
while read LINE;
|
while read LINE;
|
||||||
do
|
do
|
||||||
[[ "$LINE" != *$prog* ]] || [["$LINE" == *"Waiting for events"*]] && continue
|
[[ "$LINE" == *"Waiting for events"* ]] && continue
|
||||||
|
[[ "$LINE" != *$prog* ]] && continue
|
||||||
sleep 1 |
|
sleep 1 |
|
||||||
exec /usr/local/emhttp/webGui/scripts/notify -s "Notice [$HOSTNAME]" -d "$(echo "$LINE" | sed -e 's/.*ipmievd: //')" -i "warning" && continue 2
|
exec /usr/local/emhttp/webGui/scripts/notify -s "Notice [$HOSTNAME]" -d "$(echo "$LINE" | sed -e 's/.*ipmievd: //')" -i "warning" && continue 2
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user