The zz-zfs script hardcodes the paths for zpool and zfs:
my $pathto_zpool = $ENV{'pathto_zpool'} || '/usr/sbin/zpool';
my $pathto_zfs = $ENV{'pathto_zfs'} || '/usr/sbin/zfs';
These paths do not work with distributions installing the zfsutils in /sbin, like Debian and Ubuntu do. Would it be possible to modify the script so $PATH is taken into consideration?
In a shell script I would normally do this with e.g. command -v zpool, returns the full path of the command if found in $PATH or returns 127 if not found. Perl may have a different way to achieve this common task, otherwise sh -c 'command -v zpool' will do.
Thanks!
I just saw a fix for this landed in master:
https://sourceforge.net/p/logwatch/git/ci/01136a8b3e14a58660db6cc39138d3e40a852737/