Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

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:34

    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!

    dping28 replied 16 years, 11 months ago 3 Members · 3 Replies
  • 3 Replies
  • Sancho

    Administrator
    March 16, 2008 at 15:37
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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 !

  • Sancho

    Administrator
    March 16, 2008 at 15:46
    2321 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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);
    }

  • dping28

    Member
    March 21, 2008 at 20:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Was just running into this problem myself. This worked perfectly Thank you!

    -D