I've created an item to trace the output of a log file. So I tried using system.run as a remote command.
The item uses zabbix.agent, the item type is set to LOG and remote commands are enabled:
system.run[test -e /path/logfile && cat /path/logfile && rm /path/logfile || true]
As soon as system.run doesn't produce some output in case the log file got delete the agent reports unsupported and the item gets disabled.
Is there any way how to prevent the item from getting disabled?
Even an item like
system.run[cat /path/empty_log_file]
is getting disabled. It must be possible to log an empty log message.
Thanks
The item uses zabbix.agent, the item type is set to LOG and remote commands are enabled:
system.run[test -e /path/logfile && cat /path/logfile && rm /path/logfile || true]
As soon as system.run doesn't produce some output in case the log file got delete the agent reports unsupported and the item gets disabled.
Is there any way how to prevent the item from getting disabled?
Even an item like
system.run[cat /path/empty_log_file]
is getting disabled. It must be possible to log an empty log message.
Thanks
Comment