Multiple Cacti instances/pollers on same Server

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

Moderators: Developers, Moderators

Post Reply
PaulG
Posts: 4
Joined: Mon Aug 14, 2006 5:52 am

Multiple Cacti instances/pollers on same Server

Post by PaulG »

Does anybody know if there are problems on running two independent cacti installations on same server? The reason is a security issue, some firewalls should be monitored in a completely separate cacti instance whereas the first cacti instance own 552 hosts (3615 graphs) and the second instance own 84 hosts (401 graphs). Right now, both Cactis are running on different servers but they shall be migrated to a single server.

By now, I installed the two instances on a testsystem:
- Windows 2003 SP1
- ISS V6.0
- cacti-0.8.6g (two of it in different directorys, reachable due to different network ports on webserver)
- cacti-cactid-0.8.6e (two of it in different directorys because each has it own db settings in config.php)
- mysql 4.1.12a (one db for each installation (cacti1 and cacti2))
- net-snmp-5.2.1 (one for both installations)
- perl 5.8.7.813 (one for both installations)
- php-5.0.4 (one for both installations)
- rrdtool-1.2.10 (one for both installations)
The polling of the second instance is timed to start 3 min after the polling of the first (much bigger) instance. It works well but I just have one testnode (with 200 loopback interfaces :wink:) to monitor so it's far away from being close to reality.

I wonder if anyone already have experience on running two cactis on same server. I assume there might be problems with poller settings, timeout settings and some more tricky things. I appreciate any infos or hints.

thanks,
paul
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

A few problems come to mind:

1) Using the same mysql database. Unless you modify code, I thought cacti didn't give you the option to use a different database name.
2) CPU and Disk I/O will obviously be a lot higher with both cacti installations pretty much running 24/7. Could cause a bottleneck.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

you can specify the database name in include/config.php :

Code: Select all

$database_type = "mysql";
$database_default = "cacti";      <---
$database_hostname = "phoenix";
$database_username = "cactiuser";
$database_password = "cacti";
$database_port = "3306";
I'm running 3 Cacti instances on a test system (clean install, copy of my production server and a checkout from SVN).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah, learn something new every day...

I don't have access to my Cacti server, so have to do stuff from memory :(.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There are absolutely no issues, you simply need different database names as previously mentioned. You also have to think of load, although the scenario above does not look like a large system.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
PaulG
Posts: 4
Joined: Mon Aug 14, 2006 5:52 am

Post by PaulG »

TheWitness wrote:There are absolutely no issues, you simply need different database names as previously mentioned. You also have to think of load, although the scenario above does not look like a large system.
That's great to read.

Regardings the load and I/O:
We want to add the "small" cacti (84 hosts 401 graphs) to the already existing bigger cacti system (552 hosts 3615 graphs). It's a server which have 4 Intel Xeon 3,6GHz CPUs, 2GB Ram, SCSI HDDs (I'm not sure if they are in RAID mode) and two gigabit NICs running in teaming mode. Hopfully this server can handle the load, but I'll keep you updated what's coming out.

thanks for your statments :)
PaulG
Posts: 4
Joined: Mon Aug 14, 2006 5:52 am

Post by PaulG »

One thing seems to be a problem: I can't be logged in to both cacti installations at same time. If I login to one cacti I become logged out the other cacti.

I think this is because of the session cookie. I never looked at it befor but I'll have to do it right now so it may take a while.
Last edited by PaulG on Fri Aug 18, 2006 3:09 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I have the same problem : the only solution I found is to use IE for the 1st Cacti instance, and Firefox for the 2nd one...
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Send a PM to Rony to fix this. He know's why it's happening and knows how to fix it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

TheWitness wrote:Send a PM to Rony to fix this. He know's why it's happening and knows how to fix it.

TheWitness
I know what the problem is, the solution has to be thought out. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
PaulG
Posts: 4
Joined: Mon Aug 14, 2006 5:52 am

Post by PaulG »

I know what the problem is, the solution has to be thought out.
hehe, due to busy weekend I had no time to figure it ;) out but this evening I'll spend all my time for it (it would be great if you could tell me the problem in a short sentence so that I don't loose time on it :))

thanks and have a nice day,
paul
phrawzty
Posts: 12
Joined: Fri Apr 21, 2006 3:01 pm
Location: Montreal, Canada

Post by phrawzty »

rony wrote:I know what the problem is, the solution has to be thought out. :)
I don't suppose you've thought of a solution, eh? :)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

It will not be fixed in 0.8.6.... :(

I might be persuaded to write a patch... My wishlist is getting to big on Amazon.. :P

But it will be in 0.9.0.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest