Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Oct 20, 2018 10:48 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: batch element generator for Cacti
PostPosted: Thu May 24, 2018 11:06 am 
Offline

Joined: Fri Nov 06, 2015 10:08 am
Posts: 7
Hy , guys .. I have 500 rrd externally to cacti generated files.
I already created a few graphs using this files, they are ok.
Now , I am looking for some way to create all of them using some faster way than clicking on the graphic interface.
This is what I have:
1_ Using CLI scripts , would be ok but there is not a "add_data_source" script. If so ... please let me know where.

2_ Using some custom html / post request generator.
I have been analizing the requests and I think it could work but , am not sure about the __csrf_magic.
I will read more about it.
So ...
Is there any coment about my 2 aproaches ?
Is thre any other idea?

btw: I already not tryed the lastest cacti version ... perhaps there is somehting about this features.
regards,
Leandro.


Top
 Profile  
 
 Post subject: Re: batch element generator for Cacti
PostPosted: Thu Jul 12, 2018 4:57 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1517
csrf magic would most definitely get in your way. In 1.x there are several CLI's you utilise within the "cli" folder under cacti such as (but not limited to):

Code:
add_data_query.php     
add_datasource.php     
add_device.php         
add_graphs.php         
add_graph_template.php 
add_perms.php           
add_tree.php           
data_template_associate_rra.php
poller_data_sources_reapply_names.php
poller_graphs_reapply_names.php     

_________________
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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