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
from my Zabbix server does not include those filesystems. If I run
as root on one of the impacted hosts, it does include those filesystems in the list. However, if I instead run
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.
Code:
zabbix_get -s [host] -k vfs.fs.get
Code:
zabbix_agent2 -t vfs.fs.get
Code:
sudo -u zabbix zabbix_agent2 -t vfs.fs.get
Running zabbix-agent2 7.4.0 on Oracle Linux 9.
Comment