run 2 Cacti's on one machine using cactid ?
Moderators: Developers, Moderators
- ruud
- Cacti User
- Posts: 64
- Joined: Tue Aug 22, 2006 3:07 am
- Location: Rotterdam, The Netherlands
- Contact:
run 2 Cacti's on one machine using cactid ?
I would like to run 2 different cacti's on one machine so i can abuse one for testing new plugins/scripts etc and the other for normal use...
Installing another cacti in a different dir shouldnt be a problem. Runnel another poller.php from the cron shouldnt be a problem either since it uses a different dir..
Creating a second database in mysql should be simple enough..
Thing is.. I use cactid for the actual polling.. Is it possible to run cactid twice for different cacti's ?
Installing another cacti in a different dir shouldnt be a problem. Runnel another poller.php from the cron shouldnt be a problem either since it uses a different dir..
Creating a second database in mysql should be simple enough..
Thing is.. I use cactid for the actual polling.. Is it possible to run cactid twice for different cacti's ?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Yes
[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]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
you have to run cactid like this :
For an options list, run cactid with "--help".
you have to run cactid like this :
Code: Select all
/path/to/cactid --conf=/path/to/file
[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]
- ruud
- Cacti User
- Posts: 64
- Joined: Tue Aug 22, 2006 3:07 am
- Location: Rotterdam, The Netherlands
- Contact:
Okay,
i created an alternate cactid.conf file, but cactid isnt started directly but is called by the poller.php.
Being the php noob that i am, i'm having difficulty i finding the right lines to change to get cactid to read the config from /etc/cactid/dev/conf instead of the default /etc/cactid.conf which is read automatically according to the --help output.
i created an alternate cactid.conf file, but cactid isnt started directly but is called by the poller.php.
Being the php noob that i am, i'm having difficulty i finding the right lines to change to get cactid to read the config from /etc/cactid/dev/conf instead of the default /etc/cactid.conf which is read automatically according to the --help output.
Last edited by ruud on Wed Sep 06, 2006 12:53 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:
Maybe you can create 2 shell scripts like this :
Code: Select all
#!/bin/sh
/path/to/cactid --conf=/path/to/config
[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]
- ruud
- Cacti User
- Posts: 64
- Joined: Tue Aug 22, 2006 3:07 am
- Location: Rotterdam, The Netherlands
- Contact:
I created a scipt calling cactid using a different config file..
Sadly this doesnt work, cactid exits with an error :
it seems cactid doesnt accept an alternate file but searches for it himself.
Sadly this doesnt work, cactid exits with an error :
Code: Select all
cactidevuser@margraten /root $ /bin/sh /usr/sbin/cactid-dev
ERROR: Cactid requires either 0 or 2 input parameters
USAGE: <cactidpath>/cactid [start_host_id end_host_id]
- ruud
- Cacti User
- Posts: 64
- Joined: Tue Aug 22, 2006 3:07 am
- Location: Rotterdam, The Netherlands
- Contact:
Anyone ?? I am running cacti for 2 different network in 2 differen setups.. Using poller.php on the second instance leads to very high polling time for both instances..
I tried using cactid with a different config file but cactid finds it own config file, there is no way to make it use a different config file that i can find.
suggestions ?
I tried using cactid with a different config file but cactid finds it own config file, there is no way to make it use a different config file that i can find.
suggestions ?
Who is online
Users browsing this forum: No registered users and 0 guests