Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10073

Remote command truncated to 255 characters

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 2.2.10
    • Agent (G), Server (S)
    • Server: Ubuntu 14.04, Agent: Ubuntu 14.10

      I noticed that for a particular host in Zabbix 2.2 a remote command is being truncated, causing "Not Supported" to display for the item. Other hosts with the same setup, same agent config, executing the same command do not have this problem for whatever reason.

      We have an item that uses a macro like `system.run[{$SSL_CERT_DAYS_LEFT}, wait]` where the value of `{$SSL_CERT_DAYS_LEFT}` is 253 characters. When I turn up the zabbix agent's debug level on the problematic host, I see that the command logged is 272 characters (includes quote escaping) but the command has the last 10 characters chopped off, causing the command to fail (bash syntax error).

      The server is running Zabbix v2.2.10 (revision 54806) (10 August 2015) (installed from Zabbix repo) and all Agent versions running v2.2.5 (revision 47411) (17 July 2014) (installed from Ubuntu repo).

            Unassigned Unassigned
            mscdex Brian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: