Hello all. I am using zabbix to monitor my system, and the zabbix agent user is obviously not elevated in any way. I would like to give my zabbix user the ability to run some zfs commands to query information about my pools.

At the moment, if I “zfs status” as my zabbix user (sudo -u zabbix -c ‘zfs status’), it returns details on the pools, but in the real details, you can see “permission denied”…

config:

        NAME                                        STATE     READ WRITE CKSUM
        rpool                                       ONLINE       0     0     0
          ata-SAMSUNG_HD161HJ_S14LJA0Q536960-part3  ONLINE       0     0     4
          ata-SAMSUNG_HD161GJ_S1VCJ9FZ318818-part3  ONLINE       0     0     0
errors: List of errors unavailable: permission denied

If I run the same command as root, I get the details.

What zfs permissions do I need to give the zabbix user for this kind of detail, assuming that this is a “zfs allow…” fix? Or is this some other fix?

Thanks