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

Remote commands do not support commas

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.5
    • Fix Version/s: 1.6
    • Component/s: Agent (G)
    • Labels:
      None
    • Environment:
      Linux

      Description

      When executing a remote command which contains commas in it's arguments the agent will respond with "ZBX_NOTSUPPORTED".

      Here is a packet trace of the server/agent communication:

      system.run[/etc/zabbix/scripts/ruby_proc_sender.rb -s 192.168.103.181 -h lisa -k trap.log -c "ps -eo pcpu\,pmem\,command|sort -k1|tail -10" -D >> /tmp/debug.out,nowait]
      ZBXD.........ZBX_NOTSUPPORTED

      The internal commas are being interpreted as part of the [cmd,arg] structure. In the above example the agent is expecting the wait/nowait argument after the first comma.

      There needs to be a way to escape or otherwise use commas in remote commands.

        Attachments

          Activity

            People

            Assignee:
            sasha Alexander Vladishev
            Reporter:
            redtux nelsonab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: