librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
116 stars 187 forks source link

zfs-linux has issues on newer versions of ZFS #518

Open tuxis-ie opened 2 months ago

tuxis-ie commented 2 months ago

https://github.com/librenms/librenms-agent/blob/master/snmp/zfs-linux errors on newer versions on ZFS because the format of /proc/spl/kstat/zfs/arcstats changed. There is no longer a 'p', but there are 'pm' and 'pd' values.

I now 'fixed' my local version with the following code:

    if "p" in STATS:
        P = STATS["p"]
    else:
        P = STATS["pd"]+STATS["pm"]

Not sure if that is completly correct, but maybe something to look at?

VVelox commented 2 months ago

Thanks! I'll take a look.

VVelox commented 1 month ago

@tuxis-ie Try https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/zfs.

Just looking at the current code and this should be handled.

VVelox commented 1 month ago

@tuxis-ie BTW what does /proc/spl/kstat/zfs/arcstats look like?