Cannot evaluate function "avg" in system.run item (does not exist.)

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      zabbix 5.0.0 alpha 1

      in calculated item
      in function avg if i use system.run item
      gui do not find this item in host
      in other keys who do not contain " it is ok

      Cannot evaluate function "avg(1w)": item "mts-sntoss-fms:system.run["echo cdrdbisup |grep -q sip && CDRCOUNTWHERE=\{$CDR_COUNT_WHERE} ;allcount=0;datefrom=`date -d \`date -d '2 days ago' +%Y\"-\"%m\"-\"%d\` +%s`;dateto=`date -d \`date -d '1 days ago' +%Y\"-\"%m\"-\"%d\` +%s`;t=`mysql -A \{$CLR_DB_USER_PASS} --column-names=FALSE cdrdbisup -e \"SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES where TABLE_NAME LIKE 'isup_clrs_%' order by TABLE_NAME desc;\"`;tt=`for i in $t ;do time=\`echo $i |awk -F_ '\{print $3}'\`;if [ $time -le $dateto ] && [ $time -ge $datefrom ]; then echo $i ;elif [ $time -le $datefrom ];then break;fi;done`;for i in $tt;do count=`mysql -A \{$CLR_DB_USER_PASS} --column-names=FALSE cdrdbisup -e \"select count(*) from $i $CDRCOUNTWHERE;\"`;allcount=$((allcount+count));done;mkdir -p /tmp/CLR ; echo $allcount > /tmp/CLR/isup.txt ;echo $allcount"]" does not exist.
      

      but it exist

      see screens

      for quted " i use double
      if it on system.run key one \ if it on calculated item

       

        1. 4.png
          4.png
          74 kB
        2. 3.png
          3.png
          38 kB
        3. 2.png
          2.png
          41 kB
        4. 1.png
          1.png
          39 kB

            Assignee:
            Artjoms Rimdjonoks
            Reporter:
            Denis Filinkov
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: