Round about way to make cacti run faster with cmd.php

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

Moderators: Developers, Moderators

Post Reply
bretwarren
Posts: 1
Joined: Thu Mar 11, 2004 5:35 pm

Round about way to make cacti run faster with cmd.php

Post by bretwarren »

First let me say, I love this program, thanks RaX!

I am running RedHat 9.0:

I was polling several switches and cmd.php seem to run fine, I then added 20 windows servers and cmd.php's run time more than tripled. I needed a stable version so I decided not to go with cactid. What I did do was installed another version of cacti. Backed up my old data, imported it into the new install. Now I have one cacti install that monitors switches/routers and another that monitors servers. Since I imported all my old data, all I had to do was delete what I did not want to use. (Remember to edit config.php to tell your new version of cacti a different mysql db)

You can use virtual domains with apache and have something like:
switches.cacti.yourdomain.com
servers.cacti.yourdomain.com

and have each domain point to the specific install

Then, edit your bottom_footer.php to include links to your other cacti installs and you can go back and forth between the 2 versions without having to log in.

You need to add a cron job for each install, but the beauty is you trick cacti into multithreading (in essence). Now each install runs at the same time. This cut my total runtime down to 1/3 of what it was running before. In addition, you can have an install of cacti run at a different time intervals. For instance, you can have your switches polled every five minutes and have your servers hard disk monitored every hour, just edit the cron job.

I know its a run around, but it servers my purpose, and its much faster.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests