Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tuxis-ie opened this issue May 1, 2024 · 1 comment
Open

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

tuxis-ie opened this issue May 1, 2024 · 1 comment

Comments

@tuxis-ie
Copy link
Contributor

tuxis-ie commented May 1, 2024

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
Copy link
Collaborator

VVelox commented May 6, 2024

Thanks! I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants