Multiple Cacti instances/pollers on same Server
Moderators: Developers, Moderators
Multiple Cacti instances/pollers on same Server
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 ) 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
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 ) 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
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.
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.
| 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 |
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
you can specify the database name in include/config.php :
I'm running 3 Cacti instances on a test system (clean install, copy of my production server and a checkout from SVN).
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";
[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]
[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]
Ah, learn something new every day...
I don't have access to my Cacti server, so have to do stuff from memory .
I don't have access to my Cacti server, so have to do stuff from memory .
| 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 |
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
That's great to read.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.
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
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.
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.
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Send a PM to Rony to fix this. He know's why it's happening and knows how to fix it.
TheWitness
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?
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?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
I know what the problem is, the solution has to be thought out.TheWitness wrote:Send a PM to Rony to fix this. He know's why it's happening and knows how to fix it.
TheWitness
[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]
[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]
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 )I know what the problem is, the solution has to be thought out.
thanks and have a nice day,
paul
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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..
But it will be in 0.9.0.
I might be persuaded to write a patch... My wishlist is getting to big on Amazon..
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]
[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]
Who is online
Users browsing this forum: No registered users and 5 guests