Welcome to Pandora FMS Community › Forums › Community support › Multiple custom graphs on a custom report
-
Multiple custom graphs on a custom report
Posted by TurricanII on March 14, 2008 at 18:34Hi again,
I have two separate custom graphs, CPU (with two CPU’s on the graph) and disk space (with two drives on the graph). If I add both of these to a custom report, the first graph on the repor, CPU, appears fine with teo elements on it CPU0 and CPU1. The second graph however has all four elements on one graph, i.e. CPU0 CPU1 FreeDiskC and FreeDiskD. The second graph should only have the two FreeDisk elements on it.. Any help still much appreciated!
dping28 replied 16 years, 11 months ago 3 Members · 3 Replies -
3 Replies
-
::
Hi again,
I have two separate custom graphs, CPU (with two CPU’s on the graph) and disk space (with two drives on the graph). If I add both of these to a custom report, the first graph on the repor, CPU, appears fine with teo elements on it CPU0 and CPU1. The second graph however has all four elements on one graph, i.e. CPU0 CPU1 FreeDiskC and FreeDiskD. The second graph should only have the two FreeDisk elements on it.. Any help still much appreciated!
Wow. This is a new bug in 1.3.1. I think it’s easy to fix, so let us some time to fix. Thanks for reporting !
-
::
Hi again,
I have two separate custom graphs, CPU (with two CPU’s on the graph) and disk space (with two drives on the graph). If I add both of these to a custom report, the first graph on the repor, CPU, appears fine with teo elements on it CPU0 and CPU1. The second graph however has all four elements on one graph, i.e. CPU0 CPU1 FreeDiskC and FreeDiskD. The second graph should only have the two FreeDisk elements on it.. Any help still much appreciated!
Fixed!, was very easy. I’ll commit changes now, but if you want to fix problem yourself:
Serach for that line in /pandora_console/operation/reporting/reporting_viewer.php file
case 1: // Custom/Combined graph
And add following code just below that line:
// Clean variables because could have data if
// more than one combined graph in a report.
// Bug reported by TurricanII in openideas forums
if (isset($modules)){
unset($modules);
}
if (isset($weights)){
unset($weights);
} -