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.
Migration from MRTG - setting up easier custom scripts
Moderators: Developers, Moderators
Re: Migration from MRTG - setting up easier custom scripts
RRDTool does all the graphing and data storage. Read up on how its configured, especially for increased data storage length / consolidation.hid3 wrote:I expect Cacti to be able to show 3-5 years data with not much roundening.
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:Most scripts take parameters such as HOST and IFACE (or other param).
Nope.hid3 wrote:Is there any way to automatically convert the shell scripts to all required templates?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
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.
Re: Migration from MRTG - setting up easier custom scripts
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
It also may need this if you need it: http://forums.cacti.net/about8383.html
Who is online
Users browsing this forum: No registered users and 4 guests