Hi,
I was able to add the second traffic composition widget with different port groups. Thanks for making this possible! I have two more suggestions for improvements to this widget. See the screenshot:
[cid:image001.png@01D6A79F.1C8E6120]
If more than three groups are displayed, the frame of the widget does not adjust automatically - no matter how big I make the widget on the dashboard.
I am also confused by the fact that the in and out fields in the legend are highlighted in colour. This makes no sense in my opinion, as the colours in the bar chart refer to the groups. Could you just also greyscale it like the Total field?
Thanks! Siegfried
Von: observium observium-bounces@observium.org Im Auftrag von Adam Armstrong via observium Gesendet: Dienstag, 20. Oktober 2020 23:27 An: 'Observium' observium@observium.org Cc: Adam Armstrong adama@observium.org Betreff: Re: [Observium] Additional portpercent element/widget on frontpage?
Hi,
I've added the ability for this widget to take its configuration from its database entry. If you look in the "dash_widgets" table, there are entries for each widget.
I used it to make two different traffic composition widgets on the front page :
http://web.observium.org/~adama/snaps/chrome_2020-10-20_22-26-11.png
The format is like this :
{ "groups": { "Peering": {"group": "39"}, "Transit": {"group": "40"} }, "graph_format": "single" }
At present you'd need to insert this via the database. It's not /too/ hard. :)
Adam.
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> On Behalf Of Gumilar Siegfried MSc. via observium Sent: 20 October 2020 07:38 To: Observium <observium@observium.orgmailto:observium@observium.org> Cc: Gumilar Siegfried MSc. <siegfried.gumilar@stadtwerke-feldkirch.atmailto:siegfried.gumilar@stadtwerke-feldkirch.at> Subject: Re: [Observium] Additional portpercent element/widget on frontpage?
Hi Adam,
I might be brave, but I have no experience with coding. :) So I don't really know where and how I can enter the configuration into this "per-widget json config field". Maybe you can point me in the right direction?
Configurable widgets (maybe directly in the GUI) would make it a lot easier for users like me :)
Regards, Siegfried
Von: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> Im Auftrag von Adam Armstrong via observium Gesendet: Montag, 19. Oktober 2020 17:28 An: 'Observium' <observium@observium.orgmailto:observium@observium.org> Cc: Adam Armstrong <adama@observium.orgmailto:adama@observium.org> Betreff: Re: [Observium] Additional portpercent element/widget on frontpage?
I think I could trivially make the widget load its options from the per-widget json config field, if you're brave enough to insert the configuration there :)
I really wanted to make the widgets configurable, but I've never had time to write a configuration system for them.
Adam.
From: observium <observium-bounces@observium.orgmailto:observium-bounces@observium.org> On Behalf Of Gumilar Siegfried MSc. via observium Sent: 19 October 2020 15:45 To: observium@observium.orgmailto:observium@observium.org Cc: Gumilar Siegfried MSc. <siegfried.gumilar@stadtwerke-feldkirch.atmailto:siegfried.gumilar@stadtwerke-feldkirch.at> Subject: [Observium] Additional portpercent element/widget on frontpage?
Hello!
I would love to be able to add a second Traffic Comparison (portpercent) with different port groups to our dashboard. Is that somehow possible? Right now I can add a second "Traffic Composition" Widget in the dashboard edit mode, but it still uses the same port groups as the other one. This is how our current configuration looks like:
$config['frontpage']['order'] = array('status_summary', 'map', 'overall_traffic', 'portpercent', 'device_status', 'altert_table', 'syslog', 'eventlog'); $config['frontpage']['portpercent']['Peering'] = array('group' => 5); $config['frontpage']['portpercent']['Transit'] = array('group' => 6); $config['frontpage']['portpercent']['options'] = array('graph_format' => 'single');
In my opinion, it would be best if you could simply use portpercent2, for example, to configure the next widget.
Regards, Siegfried