When in latest data for Version Pre 1.5 Build 4672 no Graphs will be displayed. To fix this please change the following line in
/frontends/php/chart.php.
Before:
After:
/frontends/php/chart.php.
Before:
if(! ($db_data = DBfetch(DBselect("select i.itemid from items i ".
" where i.hostid in (".get_accessible_hosts_by_user($USER_DETAILS,PERM _READ_ONLY).") ".
" and i.itemid=".$_REQUEST["itemid"]))))
{
access_deny();
}
$graph = new Graph();
if(isset($_REQUEST["period"])) $graph->SetPeriod($_REQUEST["period"]);
if(isset($_REQUEST["from"])) $graph->SetFrom($_REQUEST["from"]);
if(isset($_REQUEST["width"])) $graph->SetWidth($_REQUEST["width"]);
if(isset($_REQUEST["height"])) $graph->SetHeight($_REQUEST["height"]);
if(isset($_REQUEST["border"])) $graph->SetBorder(0);
if(isset($_REQUEST["stime"])) $graph->setSTime($_REQUEST["stime"]);
" where i.hostid in (".get_accessible_hosts_by_user($USER_DETAILS,PERM _READ_ONLY).") ".
" and i.itemid=".$_REQUEST["itemid"]))))
{
access_deny();
}
$graph = new Graph();
if(isset($_REQUEST["period"])) $graph->SetPeriod($_REQUEST["period"]);
if(isset($_REQUEST["from"])) $graph->SetFrom($_REQUEST["from"]);
if(isset($_REQUEST["width"])) $graph->SetWidth($_REQUEST["width"]);
if(isset($_REQUEST["height"])) $graph->SetHeight($_REQUEST["height"]);
if(isset($_REQUEST["border"])) $graph->SetBorder(0);
if(isset($_REQUEST["stime"])) $graph->setSTime($_REQUEST["stime"]);
if(! ($db_data = DBfetch(DBselect("select i.itemid from items i ".
" where i.hostid in (".get_accessible_hosts_by_user($USER_DETAILS,PERM _READ_ONLY).") ".
" and i.itemid=".$_REQUEST["itemid"]))))
{
access_deny();
}
$graph = new Chart();
if(isset($_REQUEST["period"])) $graph->SetPeriod($_REQUEST["period"]);
if(isset($_REQUEST["from"])) $graph->SetFrom($_REQUEST["from"]);
if(isset($_REQUEST["width"])) $graph->SetWidth($_REQUEST["width"]);
if(isset($_REQUEST["height"])) $graph->SetHeight($_REQUEST["height"]);
if(isset($_REQUEST["border"])) $graph->SetBorder(0);
if(isset($_REQUEST["stime"])) $graph->setSTime($_REQUEST["stime"]);
" where i.hostid in (".get_accessible_hosts_by_user($USER_DETAILS,PERM _READ_ONLY).") ".
" and i.itemid=".$_REQUEST["itemid"]))))
{
access_deny();
}
$graph = new Chart();
if(isset($_REQUEST["period"])) $graph->SetPeriod($_REQUEST["period"]);
if(isset($_REQUEST["from"])) $graph->SetFrom($_REQUEST["from"]);
if(isset($_REQUEST["width"])) $graph->SetWidth($_REQUEST["width"]);
if(isset($_REQUEST["height"])) $graph->SetHeight($_REQUEST["height"]);
if(isset($_REQUEST["border"])) $graph->SetBorder(0);
if(isset($_REQUEST["stime"])) $graph->setSTime($_REQUEST["stime"]);
Comment