Automatically delete graphs that return nothing (NaN)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
networkk
Posts: 24
Joined: Tue Feb 13, 2024 6:44 am

Automatically delete graphs that return nothing (NaN)

Post by networkk »

Hi,

Do you know if there is a way or a script to delete all graphs that return nothing like this one :
graphs.png
graphs.png (52.44 KiB) Viewed 1348 times
If It's not deleted, there is a way to at least regroup all the graphs that return nothing to saw them in a file or something?

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Automatically delete graphs that return nothing (NaN)

Post by TheWitness »

There is an Orphan checkbox on the Graphs and Data Sources pages. That's what it's for.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Automatically delete graphs that return nothing (NaN)

Post by TheWitness »

Doing it in a fully automated way is dangerous.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
networkk
Posts: 24
Joined: Tue Feb 13, 2024 6:44 am

Re: Automatically delete graphs that return nothing (NaN)

Post by networkk »

Ok thank you, but does that remove all the graphics that return nothing? Can I filter the graphs in this way, to see all the graphs which return nothing for a particular template for example?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Automatically delete graphs that return nothing (NaN)

Post by TheWitness »

It just returns the graphs who have lost their primary key in the index field inside of the Cacti system. Let's just call them broken for now. It does not tell you say for example on a network graph of an interface that is actually down, administratively or otherwise.

That would be a nice feature but maybe for MacTrack for example.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests