![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
Hi all,
Here's another patch i've made to the front page, this time to add a "micrographs" 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 following 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.
Patch is attached and also available at http://libertysys.com.au/patches/observium/observium-r4209-micrographs.patch
Hope you like it.
Regards, Paul
![](https://secure.gravatar.com/avatar/1c685a39a957c5e4dd2544f4cdc48c02.jpg?s=120&d=mm&r=g)
On 07/20/2013 10:18 AM, Paul Gear wrote:
Hi all,
Here's another patch i've made to the front page, this time to add a "micrographs" 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. ...
If anyone is interested, the micrographs patch has been updated: http://jira.observium.org/browse/OBSERVIUM-406
Paul
participants (1)
-
Paul Gear