cacti icon indicating copy to clipboard operation
cacti copied to clipboard

Create the ability to disable Graphs

Open TheWitness opened this issue 3 years ago • 9 comments

Feature Request

Is your feature request related to a problem? Please describe

We have a very large environment that changes rapidly. So, Graphs stop updating and become less relevant to ongoing operation. However, management want's to keep a record of those Graphs and Data Sources for posterity (upto 3 years).

Instead of cluttering the user interface with a bunch of empty graphs from a device that still exists, and is enabled, it would be nice to be able to:

  1. Remove these graphs from view by disabling them.
  2. Stop the Data Collector's for polling for data.

Describe the solution you'd like

Simple, a setting in Graph Local called 'disabled', an API to disable/enable both Graphs and Data Sources, and for the API's that call Graphs, to hide them from view.

TheWitness avatar Mar 17 '22 22:03 TheWitness

Would this cover a scenario like a port that was used and is now turned down So there was data at one point but data is no longer available for the port?

bmfmancini avatar Mar 17 '22 23:03 bmfmancini

Yup, it's the same thing for us. We have a Host Group. It was there for a few months, we removed it, but people want to 'selectively' view those graphs in the future, though they will never again get data.

TheWitness avatar Mar 18 '22 00:03 TheWitness

I'm thinking of some simple API's

api_graphs_disable(string|array $graphs);
api_graphs_enable(string|array $graphs);

Then, a Dropdown on the Graphs Management page and possibly a Glyph on the Graph View page.

TheWitness avatar Mar 18 '22 00:03 TheWitness

Block it of course for Aggregate Graphs.

TheWitness avatar Mar 18 '22 00:03 TheWitness

This would knock out a major issue I have right now.

TheWitness avatar Mar 18 '22 00:03 TheWitness

This is very nice implementation, if we can have also the possibility to identify quickly and simply these graphs be fantastic. thanks a lot.

anarkia1976 avatar Mar 18 '22 09:03 anarkia1976

Whilst this would be useful, you will also likely need to have a timespan for the last time the graph was polled from otherwise the default view will just have a blank graph.

netniV avatar Apr 20 '22 15:04 netniV

IMHO, this is incorrect approach, If I understand it right. This leads to implementation of a new feature new to application logic, which should be avoided.

Instead, Autom8 should be extended to perform such action. I have similar issue (wanted to delete graphs, devices, thresholds).

stefanbrudny avatar Jun 04 '22 00:06 stefanbrudny

We need the API in either case. This feature request was focused on a GUi first approach. If you could articulate you requirements for Autom8 in a separate feature request, I would appreciate it.

TheWitness avatar Jun 04 '22 13:06 TheWitness