Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5994

key field type CTextArea

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.0.1
    • None
    • None

      if we use system.run in key of item or dicovery rule, the key does not fit in field
      see screen of my modification
      in zabbix 5.0.1 all the same
      i use sed in zabbix 4 gui to replace CTextBox to CTextArea in
      include/views/configuration.item.edit.php
      include/views/configuration.item.prototype.edit.php
      include/views/configuration.host.discovery.edit.php

      #include/views/configuration.item.edit.php +64
      #test for 4.4 CTextArea to CTextAreaFlexible
      conitemid=`grep -n "new CTextBox('key', $this" $zabbix30dir/include/views/configuration.item.edit.php |perl -e 'while(<>)

      { m/(\d+).+?(\w+)/;print "$1\n"; }'`
      sed -i "$conitemid s/CTextBox/CTextArea/g" $zabbix30dir/include/views/configuration.item.edit.php

      #include/views/configuration.item.prototype.edit.php
      conitemprotid=`grep -n "new CTextBox('key', $this" $zabbix30dir/include/views/configuration.item.prototype.edit.php |perl -e 'while(<>) { m/(d+).+?(w+)/;print "$1n"; }

      '`
      sed -i "$conitemprotid s/CTextBox/CTextArea/g" $zabbix30dir/include/views/configuration.item.prototype.edit.php

      #include/views/configuration.host.discovery.edit.php
      conhostdisid=`grep -n "new CTextBox('key', $this" $zabbix30dir/include/views/configuration.host.discovery.edit.php |perl -e 'while(<>)

      { m/(\d+).+?(\w+)/;print "$1\n"; }

      '`
      sed -i "$conhostdisid s/CTextBox/CTextArea/g" $zabbix30dir/include/views/configuration.host.discovery.edit.php

      please add it native

            Unassigned Unassigned
            lameritos Denis Filinkov
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: