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

Closed
tuxis-ie opened this issue May 1, 2024 · 3 comments
Closed

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

tuxis-ie opened this issue May 1, 2024 · 3 comments

Comments

@tuxis-ie
Copy link

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.

@VVelox
Copy link
Collaborator

VVelox commented Jun 4, 2024

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

VVelox commented Jun 4, 2024

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

@VVelox VVelox closed this as completed Oct 25, 2024
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