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

OpenZFS 2.2+ breaks the zfs.py script #18

Open
syntaxerrormmm opened this issue Feb 22, 2024 · 0 comments
Open

OpenZFS 2.2+ breaks the zfs.py script #18

syntaxerrormmm opened this issue Feb 22, 2024 · 0 comments

Comments

@syntaxerrormmm
Copy link

As it is described here and more deeply here, it seems the ARC metadata mangling has changed.

The clearest consequence is that the parameter arc_meta_limit is not anymore shown in /proc/spl/kstat/zfs/arcstats, breaking the script zfs.py:

Traceback (most recent call last):
  File "/usr/lib/zabbix/externalscripts/agent/zfs.py", line 194, in <module>
    'arc': arc_stats(),
           ^^^^^^^^^^^
  File "/usr/lib/zabbix/externalscripts/agent/zfs.py", line 173, in arc_stats
    'meta_limit': r['arc_meta_limit'],
                  ~^^^^^^^^^^^^^^^^^^
KeyError: 'arc_meta_limit'

The quick and dirty workaround is to comment line 173 in zfs.py, making the script work again.

Of course, this deeply breaks items and triggers depending on key zfs.arc.l1.meta_limit inside the template, but at least the rest of the template continues to work fine.

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

1 participant