hello everyone
I have been trying to find solution to inject existing rrd files into cacti.
since cacti provide an excellent view for rrd data (and of course other great features).
i wrote this dirty hack script which is based on sql traces.
the script takes command line parameters (details provided with the script):
./cmd_maker.pl -D "Host Description" -H "Hostname" -t "3" -g "Load Avg." -f "server_load_avg.rrd" -T "Title Load Avg."
if the host does not exists it creates it. and then injects data source paraemters and create the graph
there are some known problems with this script:
1. once you created the Graph. you cannot change the "Supplemental Graph Template Data" ( for some reason they apear as none).
2. if you change graph template it does not apply for the graph created by this script.
3. Data template and graph template should have the same names.
i know this script isnt complete yet. and in its early alpha stage. but i have been asked to post it.
so here it is. use it at your own risk. you should also backup your data before using it.
the script is released under GPL License.
Todo list:
- fix the known issues.
- create delete function for host / data / graph.
- add more features.
feel free to post your comments and patches
Moshe Sharon
Cmd Maker - Cacti command line data loader
Moderators: Developers, Moderators
-
- Posts: 17
- Joined: Sat Dec 18, 2004 5:38 pm
Cmd Maker - Cacti command line data loader
- Attachments
-
- cmd_maker.gz
- Cacti cmd Maker v. 0.0.1
- (3.07 KiB) Downloaded 629 times
Who is online
Users browsing this forum: No registered users and 0 guests