system.run[ls -l /var/] - works fine
system.run[find /var/ -type d -name '*'] - returns ZBX_NOTSUPPORTED
Does anybody have an idea why ZBX_NOTSUPPORTED is returned? I tried it through Zabbix GUI as well as through zabbix_get. Only when I change the command like:
system.run[find /var/ -type d -name '*']
to
system.run[find /var/ -type d -name '*', nowait]
then I get "1" as result. I guess that the result is the error code returned by the find command, but when I run the same find command directly on the system, then the return code is 0 and the command runs correctly.
(Remote commands are enabled in the agent config and the agent runs as root.)
system.run[find /var/ -type d -name '*'] - returns ZBX_NOTSUPPORTED
Does anybody have an idea why ZBX_NOTSUPPORTED is returned? I tried it through Zabbix GUI as well as through zabbix_get. Only when I change the command like:
system.run[find /var/ -type d -name '*']
to
system.run[find /var/ -type d -name '*', nowait]
then I get "1" as result. I guess that the result is the error code returned by the find command, but when I run the same find command directly on the system, then the return code is 0 and the command runs correctly.
(Remote commands are enabled in the agent config and the agent runs as root.)
Comment