librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
119 stars 189 forks source link

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

Closed tuxis-ie closed 3 weeks ago

tuxis-ie commented 6 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 6 months ago

Thanks! I'll take a look.

VVelox commented 5 months 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 5 months ago

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