Migration from MRTG - setting up easier custom scripts

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

Moderators: Developers, Moderators

Post Reply
hid3
Cacti User
Posts: 63
Joined: Sat Jun 14, 2008 1:59 am

Migration from MRTG - setting up easier custom scripts

Post by hid3 »

I'm considering to migrate from MRTG (log file format) to Cacti just because it's not enough for me to have 1.5 year long data as MRTG offers as a maximum. I expect Cacti to be able to show 3-5 years data with not much roundening.

However, the problem is that my MRTG setup doesn't use SNMP at all. It uses shell/perl scripts to get data from local and remote hosts. Most scripts take parameters such as HOST and IFACE (or other param).

Is it possible to do the migration without a time consuming job? I'm afraid of adding different cacti grap/data/etc templates for each script (which I have much).

Advice is appreciated.

PS: the data with MRTG is gathered by scripts like this:

Target1: /usr/local/bin/script HOSTNAME1 Interface0
Target2: /usr/local/bin/script HOSTNAME1 Interface1
Target3: /usr/local/bin/script HOSTNAME1 Interface2
Target4: /usr/local/bin/script HOSTNAME2 Interface0
Target5: /usr/local/bin/script HOSTNAME2 Interface1
<etc, etc>. I have nearly 300 targets with more than 120 different shell scripts.
hid3
Cacti User
Posts: 63
Joined: Sat Jun 14, 2008 1:59 am

Post by hid3 »

Is there any way to automatically convert the shell scripts to all required templates?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Migration from MRTG - setting up easier custom scripts

Post by BSOD2600 »

hid3 wrote:I expect Cacti to be able to show 3-5 years data with not much roundening.
RRDTool does all the graphing and data storage. Read up on how its configured, especially for increased data storage length / consolidation.
hid3 wrote:Most scripts take parameters such as HOST and IFACE (or other param).
Cacti comes with lots of SNMP templates that common systems will have -- cpu / disk / interface. If the devices you're using are snmp enabled, then I strongly suggest you just go with those for polling the interface data instead of shell scripts. Scripts don't scale well for large installations -- pure snmp is ideal.
hid3 wrote:Is there any way to automatically convert the shell scripts to all required templates?
Nope.
hid3
Cacti User
Posts: 63
Joined: Sat Jun 14, 2008 1:59 am

Post by hid3 »

Thanks for replies.

OK, I made some graph templates and now have some graphs there in cacti.

Is there any way to export (merge) the data I have in my MRTG (log file format) to the cacti rrd log file so cacti would continue graphing the data but not just start from scratch? Same count of data sources (1 or two, depends on graph).

This is the scenario I want:
1. I started a test graph in cacti a week ago.
2. Now I see it graphs ok and it suits my needs
3. I want to merge my MRTG log file with cacti rrd file: starting from let's say 1 year old data MRTG has ending in 1 week ago data exported to cacti rrd. And since 1 week ago till today cacti has got it's own data.

Is something like that possible?

Thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is surely possible. But no one, at least to my knowledge, has yet implemented an MRTG migrator
R.
gianPSI
Posts: 2
Joined: Thu Sep 24, 2015 8:54 am

Re: Migration from MRTG - setting up easier custom scripts

Post by gianPSI »

I found this on this forum: http://forums.cacti.net/about8382.html

It also may need this if you need it: http://forums.cacti.net/about8383.html
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests