So... We were using the following to track the flows thru the 3 interfaces that connect to our ISP:
$config['frontpage']['custom_traffic']['ids'] = "947,1026,1393,1394"; $config['frontpage']['custom_traffic']['title'] = "Internet traffic"; And it's worked for quite a few years. We replaced our routers and I edited the ids list with new ports: $config['frontpage']['custom_traffic']['ids'] = "25411,25412,25298"; But observium is ignoring the change. And you've explained that that feature is no more. So I found the 3 rows and just edited the contents with the new ID's directly in the SQL and it works (the boss is happy, thank you): ericx ** observium ** Tue Oct 18 13:06:14 2022 sql> select widget_id, widget_config from dash_widgets where widget_id between 4 and 6; +-----------+--------------------------------------------------------------------------------------------------------+ | widget_id | widget_config | +-----------+--------------------------------------------------------------------------------------------------------+ | 4 | {"type":"multi-port_bits","id":"25411,25412,25298","from":"-1d","title":"Internet traffic Today"} | | 5 | {"type":"multi-port_bits","id":"25411,25412,25298","from":"-7d","title":"Internet traffic This Week"} | | 6 | {"type":"multi-port_bits","id":"25411,25412,25298","from":"-1m","title":"Internet traffic This Month"} | +-----------+--------------------------------------------------------------------------------------------------------+ 3 rows in set (0.00 sec) I still have the two "$config['frontpage']['custom_traffic']" in config.php; but those are now being ignored? "Custom Traffic Graphs" are still documented: https://docs.observium.org/config_options/#custom-traffic-graphs Should I delete those lines from config.php? What would happen if I added a 2nd new 'custom_traffic' in config.php? On 10/17/22 14:47, Adam Armstrong wrote: This one is pretty complex. It’s too difficult to create configuration UI for this, so it either relies on the old “front page” style portpercent configuration, or writing the JSON config for it and putting it into the database entry for the widget directly. This allows multiple of these types of widgets to exist. It’s not really documented because it was only really added for one person, and I think it’s a bit complex. The format is like this : { "groups": { "Peering": {"group": "39"}, "Transit": {"group": "40"} }, "graph_format": "single" } graph_format can be single, multi or bare. Formatting is very important, it needs to be valid JSON. Adam. From: Eric W. Bates (he) via observium <observium@lists.observium.org><mailto:observium@lists.observium.org> Sent: 17 October 2022 19:04 To: Adam Armstrong <ad...@observium.org><mailto:ad...@observium.org> Cc: Observium <observium@lists.observium.org><mailto:observium@lists.observium.org>; Eric W. Bates (he) <eba...@whoi.edu><mailto:eba...@whoi.edu> Subject: [Observium] Re: changes to Cool. How does one actually configure an "internet traffic" widget? If I try to edit the old 'frontpage' object all I'm allowed to do is to change it's title. I'm guessing I want the "Traffic Composition" widget for this purpose? I've added one, but when I open up the settings, it gives me a static screen with what looks like a php array(): array( widget_id => 21 dash_id => 1 widget_type => port_percent widget_config => array() x => 0 y => 46 width => 12 height => 5 ) There doesn't appear to be a way to edit the settings. But presumably, I want to put the port ID's in the "widget_config" array? Happy to RTFM, but I can't find anything other than https://docs.observium.org/dashboard/ and it doesn't discuss individual widgets. Thanks for your time. On 10/17/22 11:45, Adam Armstrong via observium wrote: The frontpage array is no longer used. You directly add/remove graphs to/from the dashboard. You can click the icon on the bottom bar of the dashboard to enter editing model adam. Eric W. Bates (he) via observium wrote on 2022-10-17 13:37: We replaced our edge routers over the weekend and I updated the list of port id's in $config['frontpage']['custom_traffic']['ids'] with the new ones from the new routers; however, the custom graph on the front page hasn't changed and still lists the old interfaces (on the now shut-down routers). What else do I need to do? Thanks. _______________________________________________ observium mailing list -- observium@lists.observium.org<mailto:observium@lists.observium.org> To unsubscribe send an email to observium-le...@lists.observium.org<mailto:observium-le...@lists.observium.org> -- Sent from Postbox<https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>
smime.p7m
Description: smime.p7m
_______________________________________________ observium mailing list -- observium@lists.observium.org To unsubscribe send an email to observium-le...@lists.observium.org