In /usr/share/logwatch/scripts/services/zz-zfs line 54 and 55 are the following.
my $pathto_zpool = $ENV{'pathto_zpool'} || '/usr/sbin/zpool';
my $pathto_zfs = $ENV{'pathto_zfs'} || '/usr/sbin/zfs';
In Ubuntu, the zfs utilities are in /sbin, not /usr/sbin. This causes logwatch to not print info for ZFS even if you're using it.
The fix is just to point to /sbin instead. This is what fixed it for me.
my $pathto_zpool = $ENV{'pathto_zpool'} || '/sbin/zpool';
my $pathto_zfs = $ENV{'pathto_zfs'} || '/sbin/zfs';
In /usr/share/ logwatch/ scripts/ services/ zz-zfs line 54 and 55 are the following. zpool'} || '/usr/sbin/zpool';
my $pathto_zpool = $ENV{'pathto_
my $pathto_zfs = $ENV{'pathto_zfs'} || '/usr/sbin/zfs';
In Ubuntu, the zfs utilities are in /sbin, not /usr/sbin. This causes logwatch to not print info for ZFS even if you're using it.
The fix is just to point to /sbin instead. This is what fixed it for me.
my $pathto_zpool = $ENV{'pathto_ zpool'} || '/sbin/zpool';
my $pathto_zfs = $ENV{'pathto_zfs'} || '/sbin/zfs';