Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Dec 13, 2018 1:17 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Graph edition: adding pattern filter
PostPosted: Thu Jul 19, 2018 11:45 am 
Offline

Joined: Thu Apr 26, 2012 7:41 am
Posts: 13
Hi,

I am managing devices with thousands of interfaces (10'794 for the biggest one) and assigning right data source to graph entries takes me a huge amount of time.
I would like to add in graphs.php?action=graph_edit a new optional field which will contain the key pattern for my fields.

For an example I need to find all data related to "Cable2/1/8" (of course I need the / separator).
I would like to have the possibility to add this after the edit graph view is generated (by default with empty search restriction pattern) and so get only the needed data sources.

Can someone tell me which file I must update accordingly or help me doing it ?

I am using Cacti 1.1.37 on CentOS


Top
 Profile  
 
 Post subject: Re: Graph edition: adding pattern filter
PostPosted: Thu Jul 19, 2018 2:41 pm 
Offline

Joined: Thu Apr 26, 2012 7:41 am
Posts: 13
And another possible enhancement will be to limit Data_Sources to the same kind of Data_sources that are defined on the graph template.
Opening a graph for edition takes several seconds (the full HMTL page with is 6MB). It was faster with Cacti 0.8.8.


Top
 Profile  
 
 Post subject: Re: Graph edition: adding pattern filter
PostPosted: Fri Jul 20, 2018 3:12 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1812
Can you provide screenshots to go with what your suggesting to give a visual understanding of where you'd like this? I suspect that you have probably tweak some settings to display more rows and that is what is actually slowing down your page but I am curious to see what your suggesting.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Graph edition: adding pattern filter
PostPosted: Fri Jul 20, 2018 4:32 am 
Offline

Joined: Thu Apr 26, 2012 7:41 am
Posts: 13
Here is the suggested view:

Attachment:
Capture-Cacti-pattern filter.JPG
Capture-Cacti-pattern filter.JPG [ 63.33 KiB | Viewed 367 times ]


In the same way, if I only try to download the generated HTML file, it tooks either a long time. Maybe some scripts are slowing down response time.


Top
 Profile  
 
 Post subject: Re: Graph edition: adding pattern filter
PostPosted: Fri Jul 20, 2018 4:42 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1812
I'll copy your image over to GitHub and continue the conversion on issue 1726

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Graph edition: adding pattern filter
PostPosted: Fri Jul 20, 2018 4:47 am 
Offline

Joined: Thu Apr 26, 2012 7:41 am
Posts: 13
Ok fine for me, thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group