-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
5.0.2
-
None
-
macOS 10.15.6
Steps to reproduce:
- download and install agent for macOS
- configure agent
- Server=127.0.0.1, 10.0.0.0/24
ServerActive=127.0.0.1, 10.0.0.0/24
Hostname=mymac
Include=/usr/local/etc/zabbix/zabbix_agentd.conf.d/*.conf
- Server=127.0.0.1, 10.0.0.0/24
- add custom parameter, e.g. simple test:
- /usr/local/etc/zabbix/zabbix_agentd.conf.d/userparameter_examples.conf
- UserParameter=system.test,echo mytest
- or e.g. the default postgresql and mysql custom parameters
- /usr/local/etc/zabbix/zabbix_agentd.conf.d/userparameter_examples.conf
- run agent
- zabbix_agentd -f
- default item works fine, e.g.
- zabbix_get -s 10.0.0.10 -k "system.cpu.load[all,avg1]"
- custom parameter gives error and value (in Zabbix server, and when manually using zabbix_get), e.g.
- zabbix_get -s 10.0.0.10 -k "system.test"
- (running this command from same system as agent, or different system - the outcome is identical)
Output: error and value are shown
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory mytest
Zabbix server stores the "shell-init" error instead of the value(s).