I am facing a new issue with zabbix_agentd. Zabbix_agentd allows to execute our own script via Userparameter options in the config files. The issue is that zabbix truncates strings whose length is really long. For example, my script execute "ps -auxwww > /tmp/tempfile.txt" to get the list of the running processes and the arguments from the command line no matter how long they are.That command returns the full argument passed to processes. When I let zabbix_agentd execute that command by itself in passive checks mode, processes whose string command is very long, Zabbix Agentd truncates each lines.Then, I cannot filter anything because there are parts of the command lines that miss. Please, tell me if there is a way I can fix it.
For more technical detail what you can do to try to trigger the error yourself
is to create an item with user parameter like this:
UserParameter=test.error, ps -auxwww > /tmp/test0001.info
Then try to record it for a host in the zabbix frontend and try to see the result in that /tmp/test0001.info for processes with long arguments.
I don't know if it is limitation imposed by zabbix buffer when getting resulted output from external command execution.
How can I solve it?
For more technical detail what you can do to try to trigger the error yourself
is to create an item with user parameter like this:
UserParameter=test.error, ps -auxwww > /tmp/test0001.info
Then try to record it for a host in the zabbix frontend and try to see the result in that /tmp/test0001.info for processes with long arguments.
I don't know if it is limitation imposed by zabbix buffer when getting resulted output from external command execution.
How can I solve it?
Comment