batch element generator for Cacti

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

Moderators: Moderators, Developers

Post Reply
Author
Message
leostereo
Posts: 10
Joined: Fri Nov 06, 2015 10:08 am

batch element generator for Cacti

#1 Post by leostereo » Thu May 24, 2018 11:06 am

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.

netniV
Cacti Guru User
Posts: 2992
Joined: Sun Aug 27, 2017 12:05 am

Re: batch element generator for Cacti

#2 Post by netniV » Thu Jul 12, 2018 4:57 am

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: Select all

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      

Post Reply