Zfs.monitor

From etbemon
Jump to navigation Jump to search

The ZFS monitor takes a list of mount points for ZFS filesystems on the command-line and checks how many errors there have been via the "zpool status" command. If there have been errors then it looks for a file named /var/lib/mon/zfs-$MOUNTPOINT.count and gives an alert if that file doesn't exist or if the number in that file is less than the number of errors. This is so that if a filesystem has a few errors and you think that's OK you can count that as being OK. If you are monitoring the root filesystem then /var/lib/mon/zfs-root.count will have the count.