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
          landy Mike Stupalov made changes -
          Workflow Original: classic default workflow [ 10877 ] New: Observium workflow [ 13738 ]
          landy Mike Stupalov made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          paulgear Paul Gear made changes -
          Attachment New: observium-r4273-micrographs.patch [ 10877 ]
          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.
          adama Adam Armstrong made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          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 made changes -
          Attachment New: observium-micrograph-2.png [ 10876 ]
          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?

          People

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

            Dates

              Created:
              Updated:
              Resolved: