Ad Widget

Collapse

Zabbix 1.5 - Custom Graphs not Refreshing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix 1.5 - Custom Graphs not Refreshing

    Custom Graphs were not refreshing so I modified the following in charts.php:

    Code:
    diff -ruN zabbix-original/frontends/php/charts.php zabbix/frontends/php/charts.php
    --- zabbix-original/frontends/php/charts.php    2008-03-26 09:30:27.000000000 -0400
    +++ zabbix/frontends/php/charts.php     2008-03-31 21:58:01.000000000 -0400
    @@ -36,11 +36,13 @@
                    define('ZBX_PAGE_NO_MENU', 1);
            }
    
    -       if(isset($_REQUEST['graphid']) && $_REQUEST['graphid'] > 0 && !isset($_REQUEST['period']) && !isset($_REQUEST['stime']) && (PAGE_TYPE_HTML == $page['type']))
    +/*     if(isset($_REQUEST['graphid']) && $_REQUEST['graphid'] > 0 && !isset($_REQUEST['period']) && !isset($_REQUEST['stime']) && (PAGE_TYPE_HTML == $page['type']))
            {
                    define('ZBX_PAGE_DO_REFRESH', 1);
            }
    +*/
    
    +define('ZBX_PAGE_DO_REFRESH', 1);
     include_once 'include/page_header.php';
    
     ?>
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    I guess we should make it refreshable

    Change to this:
    Code:
    	if(isset($_REQUEST['graphid']) && ($_REQUEST['graphid'] > 0) && (PAGE_TYPE_HTML == $page['type'])){
    Or some functionality won't work, or will work incorrectly.
    Zabbix | ex GUI developer

    Comment

    • Palmertree
      Senior Member
      • Sep 2005
      • 746

      #3
      Thanks Aly. I will apply the update as you stated and will report back my testing. Thanks again.

      Comment

      Working...