Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • None
    • None
    • Web Interface
    • None

    Description

      Apologies for not submitting this through your preferred method previously.

      This adds a "micrographs" frontpage function similar to the minigraphs, but with the difference that multiple sections are allowed, each corresponding to a row in the $config['frontpage']['micrographs'] array.

      Here's an example config excerpt:

      ...
      $config['frontpage']['order'] = array('device_status_boxes', 'minigraphs', 'micrographs', 'status_summary', 'eventlog');
      ...
      $config['frontpage']['micrographs']['network']['ids'] = '1,device_bits,router1;2,device_bits,router2;3,device_bits,switch1;4,device_bits,firewall1;5,device_bits,firewall2';
      $config['frontpage']['micrographs']['network']['title'] = 'Network';
      $config['frontpage']['micrographs']['servers']['ids'] = '6,device_bits,vmhost1;7,device_bits,observium;8,device_bits,fileserver;9,device_bits,vmhost2;10,device_bits,backup';
      $config['frontpage']['micrographs']['servers']['title'] = 'Servers';
      ...

      This produces the attached output on the front page.

      Both the row labels and the graph labels are optional - if you leave them both out you get just a bare row of clickable graphs. There's no label justification, which looks a bit funny when labels are different lengths, but i figure people can just add space or whatever to make their front page look how they want it.

      Attachments

        Activity

          [OBS-406] Add frontpage micrograph support
          paulgear Paul Gear added a comment -

          Thanks for committing. I started deploying on another host and realised there's another part of the patch i neglected to upload earlier.

          paulgear Paul Gear added a comment - Thanks for committing. I started deploying on another host and realised there's another part of the patch i neglected to upload earlier.

          Committed in r4273.

          adama Adam Armstrong added a comment - Committed in r4273.

          I still think it's a little bit needlessly ugly, but I'll commit it now.

          Don't be suprised if I delete it at some point

          adama Adam Armstrong added a comment - I still think it's a little bit needlessly ugly, but I'll commit it now. Don't be suprised if I delete it at some point
          paulgear Paul Gear added a comment -

          Sorry - here's a screenshot from my home network.

          paulgear Paul Gear added a comment - Sorry - here's a screenshot from my home network.

          no new screenshot?

          adama Adam Armstrong added a comment - no new screenshot?
          paulgear Paul Gear added a comment -

          Updated patch which simplifies logic and removes times - can't think why we'd want them when a daily graph is the default anyway.

          paulgear Paul Gear added a comment - Updated patch which simplifies logic and removes times - can't think why we'd want them when a daily graph is the default anyway.
          paulgear Paul Gear added a comment -

          Hopefully that patch will address your aesthetic concerns. I'm definitely interested in progressing the automation side of it as well, but my client was very specific about which minigraphs he wanted on the front page, and i imagine most sites would be similar. I'm not sure how one could make an intelligent automatic selection of which graphs to include.

          paulgear Paul Gear added a comment - Hopefully that patch will address your aesthetic concerns. I'm definitely interested in progressing the automation side of it as well, but my client was very specific about which minigraphs he wanted on the front page, and i imagine most sites would be similar. I'm not sure how one could make an intelligent automatic selection of which graphs to include.
          paulgear Paul Gear added a comment -

          I also fixed up some of the HTML output of the micrographs while i was at it.

          paulgear Paul Gear added a comment - I also fixed up some of the HTML output of the micrographs while i was at it.
          paulgear Paul Gear added a comment - - edited

          Updated patch improving aesthetics; this uses the table styling that the event log and device status summary use. It looks pretty enough to me...

          paulgear Paul Gear added a comment - - edited Updated patch improving aesthetics; this uses the table styling that the event log and device status summary use. It looks pretty enough to me...

          You obviously didn't pay much attention to the primary design goals of Observium being automation and aesthetics

          Personally, I'd prefer to set fire to the front page and hope whatever remains is less of a cluster fuck. Everyone wants something different, and it's quite impossible to maintain everything everyone wants.

          I don't really mind much at all, so long as it follows the existing design and looks pretty.

          adama Adam Armstrong added a comment - You obviously didn't pay much attention to the primary design goals of Observium being automation and aesthetics Personally, I'd prefer to set fire to the front page and hope whatever remains is less of a cluster fuck. Everyone wants something different, and it's quite impossible to maintain everything everyone wants. I don't really mind much at all, so long as it follows the existing design and looks pretty.

          People

            adama Adam Armstrong
            paulgear Paul Gear
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: