Ad Widget

Collapse

Zabbix Truncates Command Outputs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • douggynix
    Junior Member
    • Jul 2011
    • 1

    #1

    Zabbix Truncates Command Outputs

    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?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    it's probably best to report this on the zabbix issue tracker
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...