Ad Widget

Collapse

PATCH : Factor 10 for history of events

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SLMitch
    Member
    • May 2006
    • 39

    #1

    PATCH : Factor 10 for history of events

    I found in the code a factor 10 for the display of history of events in screen.
    Why this 10 ? I don't know, so i remove it to have a normal comportment.

    Code:
    diff -ruwBb zabbix-1.1-orig/frontends/php/include/events.inc.php zabbix-1.1/frontends/php/include/events.inc.php
    --- zabbix-1.1-orig/frontends/php/include/events.inc.php        2006-06-08 21:39:07.000000000 +0200
    +++ zabbix-1.1/frontends/php/include/events.inc.php     2006-07-19 15:22:25.000000000 +0200
    @@ -34,8 +34,7 @@
                    {
                            $sql="select distinct triggerid,clock,value from alarms order by clock desc";
                    }
    -               $result=DBselect($sql,10*($start+$num));
    -
    +               $result=DBselect($sql,($start+$num));
                    $table = new CTableInfo(S_NO_EVENTS_FOUND);
                    $table->setHeader(array(S_TIME, S_DESCRIPTION, S_VALUE, S_SEVERITY));
                    $col=0;
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    The 10 is on purpose. Some events may be filtered out by user permission, so we select 10x times more rows.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Hichhiker
      Member
      • Nov 2004
      • 45

      #3
      Originally posted by Alexei
      The 10 is on purpose. Some events may be filtered out by user permission, so we select 10x times more rows.
      It seems to DISPLAY 10x more lines than selected (at least in 1.1.2) which I assume is not the intended result.

      -HH

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by Hichhiker
        It seems to DISPLAY 10x more lines than selected (at least in 1.1.2) which I assume is not the intended result.

        -HH
        How many rows it displays? I see only 100 as supposed to be!
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...