Po Petz <[EMAIL PROTECTED]> writes:

> Hi,
>
> Is there a way to ack all failure conditions from moncmd at once?

Something like following perhaps ?

ack_comment="i just pulled out the plug"
moncmd list failures \
| egrep -v "^220" \
| sed -e "s,^group=\([^ ]*\) service=\([^ ]*\) .*,moncmd ack \1 \2 
$ack_comment," \
| sh

My 2 cents,
-- 
Nicolas

_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to