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

Triggers containing system.run items with "||" characters in command are not editable in expression constructor + can not change trigger contents in text mode: parsing error;

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0.5rc1
    • 2.0.4
    • Frontend (F)
    • None
    • 2.0.4 is affected.
      earlier versions are not.

      Triggers containing system.run items with "||" characters in command are not editable in expression constructor + can not change trigger contents in text mode: parsing error;

      Trigger expression example:

      ============

      {-- Tpl_Condor_Grid_worker_node:system.run["file=/net/$(hostname -f)/local_disk/zabbix.test; touch $file ||

      { echo 1; exit 1; }

      ; rm $file; echo 0;"].last(1000)}=1 |
      {-- Tpl_Condor_Grid_worker_node:system.run["for mp in /sw /home /tools /tools/local; do ( 2> /dev/null mount | grep -E 'nfs|bind' | grep $mp > /dev/null && ls -l $mp/ > /dev/null ) ||

      { echo 1 && exit; }

      ; done; echo 0"].last(1000)}=1 |
      {-- Tpl_Condor_Grid_worker_node:vfs.fs.size[/local_disk,free].last(1000)}<5000000000 |
      {-- Tpl_Condor_Grid_worker_node:system.run["( exec > /dev/null 2>&1 /usr/bin/env condor_q ) ||

      { echo 1; exit; }

      ; echo 0"].last(1000)}=1 |
      {-- Tpl_Condor_Grid_worker_node:custom.grid.condor.worker.swapped_to_available_prop.last(600)}>3 |
      {-- Tpl_Condor_Grid_worker_node:custom.grid.condor.worker.cpu.cores_putil.avg(600)}>195 |
      {-- Tpl_Condor_Grid_worker_node:ssh.run["Condor worker, IO: Reported I/O errors"].iregexp(err,60)}=1

      ============

      2.0.3 has no troubles with it, so, the issue was introduced in 2.0.4

            Unassigned Unassigned
            leosat Leonid Satanovsky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: