Ad Widget

Collapse

Help with ZFS on Linux Template - Unknown metric zfs.arcstats

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • greavette
    Member
    • Jul 2015
    • 82

    #1

    Help with ZFS on Linux Template - Unknown metric zfs.arcstats

    Hello Forum,

    I have Zabbix 6.0 LTS and I'm attempting to monitor my zfs on my Proxmox (Debian 11) server. I have ZFS version 2.1.5-pve1 installed.

    I'm using this link here to install the template to monitor zfs:


    The Zabbix Team has collected all official Zabbix monitoring templates and integrations.


    I've imported the template to my Zabbix and I've added the template to my Proxmox Host. Latest data is showing this error for most ZFS items:

    Unknown metric zfs.arcstats

    I'm looking for help with what needs to be adjusted for this template to have it work to monitor my ZFS?

    Thank you.
  • denmon
    Junior Member
    • Nov 2023
    • 3

    #2
    "unknown metric" means that the agent does not know how to read that metric (i.e., the key being asked for is undefined).

    Have you added the userparameter file to the zabbix agent config directory on the Proxmox host? I had a similar problem, and my issue was that although I did upload the userparameter file to /etc/zabbix/zabbix_agent2.d, the agent's config file (/etc/zabbix/zabbix_agent2.conf) did not have the proper Include line to tell the agent to look at that file:

    Code:
    Include=/etc/zabbix/zabbix_agent2.d/*.conf
    I figured it out by using inotifywait to watch for *any* access to the userparameter file, and then restarting the agent. It was clear from inotify that the agent never even attempted to look at the userparameter file, so of course it didn't know about the keys defined there. Once I fixed the Include line and restarted the agent, inotify showed the expected access, and everything started working properly:

    Code:
    root@myhost:/etc/zabbix/zabbix_agent2.d# inotifywait -m .
    Setting up watches.
    Watches established.
    ./ OPEN,ISDIR
    ./ ACCESS,ISDIR
    ./ ACCESS,ISDIR
    ./ CLOSE_NOWRITE,CLOSE,ISDIR
    ./ OPEN userparams_zol_without_sudo.conf
    ./ ACCESS userparams_zol_without_sudo.conf
    ./ ACCESS userparams_zol_without_sudo.conf
    ./ ACCESS userparams_zol_without_sudo.conf
    ./ CLOSE_NOWRITE,CLOSE userparams_zol_without_sudo.conf

    Comment

    Working...