Ad Widget

Collapse

Zabbix Agent does not return iscsi filesystems

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • brentg
    Junior Member
    • Nov 2024
    • 2

    #1

    Zabbix Agent does not return iscsi filesystems

    I have a couple of Linux servers with iscsi (xfs) filesystems mounted on them that aren't showing up in filesystem discovery. I've found that running
    Code:
    zabbix_get -s [host] -k vfs.fs.get
    from my Zabbix server does not include those filesystems. If I run
    Code:
    zabbix_agent2 -t vfs.fs.get
    as root on one of the impacted hosts, it does include those filesystems in the list. However, if I instead run
    Code:
    sudo -u zabbix zabbix_agent2 -t vfs.fs.get
    then those filesystems disappear. I changed the Zabbix Agent 2 service file to run the agent as root instead of zabbix, restarted the agent, and suddenly the iscsi filesystems do get returned by zabbix_get. Changing the agent back to the zabbix user causes them to disappear again. I've found no output in zabbix agent2 logs, and nothing that appears relevant in selinux logs. How can I get these file systems to be included by the Zabbix Agent?

    Running zabbix-agent2 7.4.0 on Oracle Linux 9.
  • Answer selected by brentg at 31-07-2025, 19:03.
    brentg
    Junior Member
    • Nov 2024
    • 2

    Sure enough. I had previously tested the mount command as the zabbix user and that worked. But this morning I tried df and that omitted them. A bit of quick research showed that I needed to grant execute permissions on the directory structure that the mount points are on. Now I have data! Thanks!

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      I think you may need to review those mounting options/permissions there. Seems like ordinary users do not see them... or have no permissions to access them....

      Comment

      • brentg
        Junior Member
        • Nov 2024
        • 2

        #3
        Sure enough. I had previously tested the mount command as the zabbix user and that worked. But this morning I tried df and that omitted them. A bit of quick research showed that I needed to grant execute permissions on the directory structure that the mount points are on. Now I have data! Thanks!

        Comment

        Working...