Hi !!
Is possible to import mrtg statistics to cacti or rrd and the to cacti.
Thanky you for the great tool !!!
homa
Import MRTG Statistics to Cacti
Moderators: Developers, Moderators
You can, but its difficult. I started, but decided it really wasn't worth it... Here's how I think you would approach this:
1) Add the hosts you like to poll, and create their datasources, but lease the disabled, so that cacti won't try to create the RRD yet.
2) If you're using MRTG 1.x (logfiles instead of RRDs), use the log2rrd script to turn them into RRDs.
3) Run "rrdtool dump somerrd.rrd > some_interface.xml" to get the RRD into XML format
4) Muck with the XML to split the IN from the OUT making two XML files (lot of work)
5) Run "rrdtool restore some_new_rrd.rrd < some_interface_in.xml" and the same for some_interface_out.xml
6) Look up the name of the RRD in your datasource config for each interface, and copy some_new_rrd.rrd to that filename.
rinse, repeat for each interface.
Like I said, I had only started the process, and didn't have the time to work on it, but if anyone would like to script this, I'm sure its possible...
Aaron
1) Add the hosts you like to poll, and create their datasources, but lease the disabled, so that cacti won't try to create the RRD yet.
2) If you're using MRTG 1.x (logfiles instead of RRDs), use the log2rrd script to turn them into RRDs.
3) Run "rrdtool dump somerrd.rrd > some_interface.xml" to get the RRD into XML format
4) Muck with the XML to split the IN from the OUT making two XML files (lot of work)
5) Run "rrdtool restore some_new_rrd.rrd < some_interface_in.xml" and the same for some_interface_out.xml
6) Look up the name of the RRD in your datasource config for each interface, and copy some_new_rrd.rrd to that filename.
rinse, repeat for each interface.
Like I said, I had only started the process, and didn't have the time to work on it, but if anyone would like to script this, I'm sure its possible...
Aaron
Who is online
Users browsing this forum: No registered users and 2 guests