Ad Widget

Collapse

Last 20 Issue width

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fdcsantos
    Junior Member
    Zabbix Certified Specialist
    • Mar 2010
    • 27

    #1

    Last 20 Issue width

    Hi there,

    I need to change the table width Last 20 issues in dashboard. In column Issue I need to increase the size of cell to show all Trigger text. I try to put in Screens but ocurred the same.

    Which file can I change the size of cell?
    Attached Files
  • jrprado
    Junior Member
    • Sep 2010
    • 28

    #2
    I have the same problem. My idea is to make an html page that shows only "Last issues" instead of just 20, as a solution to replace the firefox plugin that does not work in this new version of zabbix 1.8.3. But I do not know how zabbix does this query "Last 20 issues".

    Comment

    • voll
      Junior Member
      • Nov 2009
      • 1

      #3
      jrprado, just add single line to dashboard.php file:

      Code:
               
              $dashconf['extAck'] = 0;
          +   $dashconf['limit'] = 0;

      Comment

      • mbrand5371
        Member
        • May 2009
        • 55

        #4
        We've the same issue with dashboard line widh.
        Added the dashboard limit, but without any result.
        Is it possible to set se line width ?

        Regards, Marcus

        Comment

        • jrprado
          Junior Member
          • Sep 2010
          • 28

          #5
          Originally posted by voll
          jrprado, just add single line to dashboard.php file:

          Code:
                   
                  $dashconf['extAck'] = 0;
              +   $dashconf['limit'] = 0;
          This only solved the display limit.


          Anyone know or able to change the width of the line? Still carry on with this problem.

          mbrand5371 did you get?

          Comment

          • jrprado
            Junior Member
            • Sep 2010
            • 28

            #6
            Nobody knows? Any developer Zabbix can help me? In previous versions (1.8.1 and 1.8.2) did not occur this problem or feature.

            Comment

            • jrprado
              Junior Member
              • Sep 2010
              • 28

              #7
              Up...

              Comment

              • mbrand5371
                Member
                • May 2009
                • 55

                #8
                Hi jrprado !
                Seems that no one is able to solve this.
                No updates so far.

                Comment

                • goly
                  Junior Member
                  • Jan 2011
                  • 8

                  #9
                  hi,

                  I made this change using a small modifications in PHP file. Here it is:
                  Code:
                  # diff include/blocks.inc.php.ORIG include/blocks.inc.php     
                  680c680
                  <       $limit = isset($filter['limit']) ? $filter['limit'] : 20;
                  ---
                  >       $limit = isset($filter['limit']) ? $filter['limit'] : 30;
                  Then you can change the "Last 20 issues" to "Last 30 issues" in the file containing all messages. For english it is here:

                  Code:
                  # diff include/locales/en_gb.inc.php.ORIG include/locales/en_gb.inc.php
                  1201c1201
                  <       'S_LAST_20_ISSUES'=>                    'Last 20 issues',
                  ---
                  >       'S_LAST_20_ISSUES'=>                    'Last 30 issues',
                  Regards,
                  --
                  KG

                  Comment

                  • goly
                    Junior Member
                    • Jan 2011
                    • 8

                    #10
                    Originally posted by goly
                    hi,

                    I made this change using a small modifications in PHP file. Here it is:
                    Code:
                    # diff include/blocks.inc.php.ORIG include/blocks.inc.php     
                    680c680
                    <       $limit = isset($filter['limit']) ? $filter['limit'] : 20;
                    ---
                    >       $limit = isset($filter['limit']) ? $filter['limit'] : 30;
                    Then you can change the "Last 20 issues" to "Last 30 issues" in the file containing all messages. For english it is here:

                    Code:
                    # diff include/locales/en_gb.inc.php.ORIG include/locales/en_gb.inc.php
                    1201c1201
                    <       'S_LAST_20_ISSUES'=>                    'Last 20 issues',
                    ---
                    >       'S_LAST_20_ISSUES'=>                    'Last 30 issues',
                    Regards,
                    --
                    KG
                    Forgot to add - the changes above are for expanding "last 20 issues" list (to "last 30"), NOT for expanding the description (trigger) cell.
                    --
                    KG

                    Comment

                    • shion
                      Junior Member
                      • Jan 2009
                      • 4

                      #11
                      Same problem here. : (
                      The text of the "Last 20 issues" is shortened since I have updated Zabbix to version 1.8.3.
                      Does somebody found a solution or can someone provide a patch for this?

                      Comment

                      • goly
                        Junior Member
                        • Jan 2011
                        • 8

                        #12
                        I checked the "last 20 issues" with 1.8.4 version - created a looooong trigger comment (I mean the alarm message) and looks like this issue has been fixed. The "Last 20 issues" and its "Issue" column expanded when the new alarm cam and I was able to see the whole alarm message. So, try 1.8.4.
                        Regards,
                        --
                        KG

                        Comment

                        • fdcsantos
                          Junior Member
                          Zabbix Certified Specialist
                          • Mar 2010
                          • 27

                          #13
                          Hi goly,

                          Thanks for your tip. However, I'm glad to say that we're already using version 1.8.4.

                          What we've been wondering is that triggers that are provided from a script always are cut off in the Last 20 Issues. Original triggers from Zabbix aren't. See attached file.
                          Attached Files

                          Comment

                          • shion
                            Junior Member
                            • Jan 2009
                            • 4

                            #14
                            I upgraded Zabbix to 1.8.4 too and can confirm what fdcsantos said.

                            The normal messages of the "Last 20 issues" list are not shortened anymore.
                            But if you have a "{ITEM.LASTVALUE}" (in my case a long return string) in the name of the trigger it will be furthermore shortened.

                            Comment

                            • minfo
                              Junior Member
                              • Aug 2012
                              • 1

                              #15
                              In Zabbix 2.0.2

                              /var/www/html/zabbix/include/defines.inc.php

                              Change 20 for wishing:

                              [Line 517]

                              define('DEFAULT_LATEST_ISSUES_CNT', 20);

                              Comment

                              Working...