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. J

 

Adam.

 

 

From: observium <observium-bounces@observium.org> On Behalf Of Gumilar Siegfried MSc. via observium
Sent: 20 October 2020 07:38
To: Observium <observium@observium.org>
Cc: Gumilar Siegfried MSc. <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. J

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 J

 

Regards,

Siegfried

 

Von: observium <observium-bounces@observium.org> Im Auftrag von Adam Armstrong via observium
Gesendet: Montag, 19. Oktober 2020 17:28
An: 'Observium' <observium@observium.org>
Cc: Adam Armstrong <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 J

 

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.org> On Behalf Of Gumilar Siegfried MSc. via observium
Sent: 19 October 2020 15:45
To:
observium@observium.org
Cc: Gumilar Siegfried MSc. <
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