Ad Widget

Collapse

Trigger name field truncates {ITEM.VALUE} to 20 characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • divya751
    Junior Member
    • Aug 2014
    • 10

    #1

    Trigger name field truncates {ITEM.VALUE} to 20 characters

    Hi Zabbix Gurus, I have a problem of truncating text type in Trigger after 20 characters. I am using log/Text datatype of Item. I have Zabbix agent 1.1.0 and Zabbix server version 2.2.1. I have heard about some frontend patches which can solve the problem, does anybody have idea about it or know how to solve the this issue?
    Thanks in advance
    Best Regards
  • divya751
    Junior Member
    • Aug 2014
    • 10

    #2
    Could somebody suggest on the post?

    Comment

    • filipp.sudanov
      Senior Member
      Zabbix Certified Specialist
      • May 2014
      • 137

      #3
      There is a hardcoded limitation of 20 characters when displaying values in "Latest data". But it should not be so in triggers - on what exactly page this is happening?

      Comment

      • divya751
        Junior Member
        • Aug 2014
        • 10

        #4
        Thanks for answering.
        The problem is when it is truncating the alert details (Monitoring->Trigger). Example: Warning: /u01 76%...
        The Item's "Type of Information" is Text and the Trigger of the Item is displaying 'ItemValue'.
        Sorry I am not able to load the picture on this website.

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          Originally posted by divya751
          Thanks for answering.
          The problem is when it is truncating the alert details (Monitoring->Trigger). Example: Warning: /u01 76%...
          The Item's "Type of Information" is Text and the Trigger of the Item is displaying 'ItemValue'.
          Just move the important part of information in the start of trigger.
          BTW, you can use different "Severity" for Warning/Average/High and remove the word "Warning" from trigger name.
          Sincerely yours,
          Aleksey

          Comment

          • natalia
            Senior Member
            • Apr 2013
            • 159

            #6
            Originally posted by divya751
            Hi Zabbix Gurus, I have a problem of truncating text type in Trigger after 20 characters. I am using log/Text datatype of Item. I have Zabbix agent 1.1.0 and Zabbix server version 2.2.1. I have heard about some frontend patches which can solve the problem, does anybody have idea about it or know how to solve the this issue?
            Thanks in advance
            Best Regards
            if ITEM define with type "log" or "text" and ITEM.VALUE length > 20 , it show only 20 symbols and the rest replace with ...

            check include/items.inc.php line 990 :

            case ITEM_VALUE_TYPE_LOG:
            if ($trim && zbx_strlen($value) > 20) {
            $value = zbx_substr($value, 0, 20).'...';
            }

            I changed 20 to 100.

            Comment

            Working...