Bob Friesenhahn wrote: > On Sun, 28 Dec 2008, Robert Bauer wrote: > >> It would be nice if gnome could notify me automatically when one of >> my zpools are degraded or if any kind of ZFS error occurs. > > Yes. It is a weird failing of Solaris to have an advanced fault > detection system without a useful reporting mechanism. > >> I would also accept if it could be possible at least to send >> automatically a mail when a zpool is degraded. > > This the script (run as root via crontab) I use to have an email sent > to 'root' if a fault is detected. It has already reported a fault: > > #!/bin/sh > REPORT=/tmp/faultreport.txt > SYSTEM=$1 > rm -f $REPORT > /usr/sbin/fmadm faulty 2>&1 > $REPORT > if test -s $REPORT > then > /usr/ucb/Mail -s "$SYSTEM Fault Alert" root < $REPORT > fi > rm -f $REPORT
I do much the same thing, although I had to fiddle it a bit to exclude a certain report type. A while ago, a server here started to send out errors from: Fault class : defect.sunos.eft.undiagnosable_problem The guys on the fault-discuss list have been unable to enlighten me as to the problem, and I'm ashamed to say I have not taken any steps. Except to replace the entire machine, I have no idea what to try. I just wanted to note that although the fault detection is very good, it isn't always possible to work out what the fault really is. Matt _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss