blind-oracle / zabbix-zfs

Zabbix template & script to monitor ZFS on Linux
Mozilla Public License 2.0
30 stars 6 forks source link

Getting an error while running zfs.py #19

Open veesiom opened 4 months ago

veesiom commented 4 months ago

Hi there!

I'm getting this error when i'm trying to run ./zfs.py locally and i don't really know what's causing it:

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

As soon as i am commenting out this line it's getting to work:

'arc': arc_stats(),

If there's any additional info i could provide, i'll be happy to do so once you ask.

blind-oracle commented 4 months ago

Which version of ZFS you're running?

veesiom commented 4 months ago
root@pve01:~# modinfo zfs | grep version 
version:        2.2.2-pve1
srcversion:     64DFECF22645F1BD34FFBB0
vermagic:       6.5.11-8-pve SMP preempt mod_unload modversions