-
Type:
New Feature Request
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
In the current documentation for system.hw.chassis:
Root permissions are required because the value is acquired by reading from sysfs or memory.
May I suggest a workaround if sysfs is available? I've added the following block to the systemd service of the zabbix agent:
[Service]
PermissionsStartOnly=true
ExecStartPre=/usr/bin/chgrp zabbix /sys/firmware/dmi/tables/DMI
ExecStartPre=/usr/bin/chmod g+r /sys/firmware/dmi/tables/DMI
With this change the zabbix user is able to read /sys/firmware/dmi/tables/DMI and system.hw.chassis is supported.
Kind regards,
Hubert