Replace MRTG with Cacti

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Replace MRTG with Cacti

Post by cutta123 »

Please I am asking for help on how I would go about migrating or replacing MRTG with CACTI? What would be the steps I take for someone who had no knowledge of MRTG and CACTI. I am really new to this and I am the one responsible for these now. Thanks for all your help.
cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Post by cutta123 »

I haven't installed Cacti yet. I want to know the upgrade steps I should follow from MRTG to Cacti. Thanks again.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Unless you've told mrtg to use rrd as its storage format, there is no upgrade path. And even if you did, using the existing rrd files is possible, but not really ideal.

You must start fresh with Cacti.
cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Post by cutta123 »

Okay, I think I am understanding you now. Bascially I have to install Cacti first and import MRTG to Cacti.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Basically.

The only way you can import data from mrtg, is if its in the rrdtool format. Even then, you'll need to follow the guide (in the documentation site) on how to make cacti work with existing rrd files.
cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Post by cutta123 »

Sorry I am a novice... but how do I know if its in rrdtool format? Thanks.
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Take a look at

http://oss.oetiker.ch/mrtg/index.en.html

http://oss.oetiker.ch/mrtg/doc/mrtg-rrd.en.html

You need to search of *.rrd files on the server that mrtg runs on. If those files exist then its set to use RRD if they don't then its not.

If you plan to move over to Cacti I would have a good read of the documentation beforehand. Its a fantastic tool but the installation can be painful sometimes.

This is a great place to start
http://docs.cacti.net/

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Post by cutta123 »

Jay,

Thanks for your help! I like the way you explained it because I am very new to this. I will do a search as you mention on the server that mrtg is installed on.

If I am running the windows version I am thinking these are the steps I'll have to follow to get Cacti working and then export MRTG.

1. Download and Install Cacti on the server that MRTG is installed on
2. Install PHP
3. Install MySQL
4. Install RRDTool
5. Configure PHP
6. Configure IIS
7. Do nothing to RRDTool
8. Stop MySQL service, then Start MySQL service
9. Configure Cacti
10. Apply Patches
11. Reboot Cacti server

After doing these steps, how do I import our network devices from MRTG to Cacti? Or, how do I make MRTG work with Cacti?

I know I'll have to load all our network devices and create profiles on Cacti. Also we have a second MRTG Server, we are using both, one is our backup server....MRTG and MRTG01...

Thanks for all your help and BSOD2600 help. I appreciate it so much!
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi

If you are using Windows then you can either follow the guide and install each component separately or there is a windows installer you can use. I haven't used the installer but it looks to be a great tool for those that are worried about setting up mysql etc. Setting up yourself though is a good way to learn.

Windows Installer
http://forums.cacti.net/viewtopic.php?t=14946
Windows Guide
http://forums.cacti.net/viewtopic.php?t=11747

As far as migrating your information from MRTG I have never done that before so can't really comment. There is a short guide on how to do this

http://docs.cacti.net/node/391

How many devices have you currently got with MRTG?? Is it a large installation?? It might be easier to set up Cacti on a seperate server and start from scratch. Once that is done you can switch off polling in MRTG but leave the graphs on the MRTG server for reference. Then 6 months down the line once you have collected enough stats within Cacti you can decommission the MRTG server. It depends on whether your company like to keep stats for years. If you do need to do it then it may be better to install Cacti on a new server to keep it seperate from MRTG and then follow the guide as mentioned above. Either way I would set up Cacti and get yourself used to it before trying to transfer your MRTG data across.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Post by cutta123 »

Okay, I am following the instructions for the Windows version... I install php-5.2.5.tar.gz then it detects the mirroe close to you which mine was us3.php.net Tier Four Colocation

I am following the installation instructions but I did not get a welcome page where I can follow the exact instructions listed... It installed in the C:\PHP though what should I do next? Thanks.
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi

Are you just installing Cacti at the moment?? Are you installing it on Windows?? If so why are you using what looks to be a Linux/Unix PHP version. You need to use the Windows Binaries - Installer and ZIP file as per the instructions.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Post by cutta123 »

Jay,

I am installing Cacti, RRDTool, PHP, MySQL on Windows Server 2003 which already have MRTG running on it.

Please any help would be thankful. Thanks.
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi

To install PHP use the WIndows binaries as I mentioned before and follow these steps to install PHP


PHP
Recommended Install Path: C:\PHP\
Note: Do not install into a path containing spaces (i.e. C:\Program Files\PHP\) unless you're prepared to deal with 8.3 filenames.

* Double-click on the php installer to start it running.
1. Click Next to the welcome page.
2. Click I Agree to accept the license agreement.
3. At the Destination Folder page, change the path to: C:\PHP\ and click Next.
4. At the Web Server page, select IIS ISAPI Module and click Next.
5. At the Choose Item page, do the following:
1. Click on the Program folder and select entire feature will be installed on local hard drive. The icon should now be white.
2. Under the Extension folder, select MySQL, SNMP, and Sockets to be installed.
6. Click Next.
7. Click Install.
8. Once done installing, click Finish.
* Create new folders under C:\PHP\ called Uploadtemp and Session.
* Extract the contents of the PHP zip file
1. Move the \extras\mibs\ folder to C:\PHP\Extras\




If you have already done this using the correct windows binaries then I need more information as to the error messages you see.

I would also follow the troubleshooting instructions posted here
http://forums.cacti.net/viewtopic.php?t=11747


I won't be able to reply until tomorrow as I'm leaving the office now.

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
cutta123
Posts: 45
Joined: Wed Jan 16, 2008 4:10 pm

Post by cutta123 »

I am using IIS V6 and OS Windows 2003, MySQL was already installed on it before maybe because MRTG is running on it.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests