PDA

View Full Version : Multiple zabbix environments on one box


siebrand
25-04-2005, 18:04
Environment:
FreeBSD 5.3
zabbix-1.0_2,1 port

I'm trying to run multiple zabbix environments on one box (copy of existing environment that is to be migrated, new environment and test environment - 3 in total).

Done:
- added a second database
- copied /usr/local/bin/zabbix_suckerd to /usr/local/bin/zabbix_suckerd_old
- copied and changed /usr/local/etc/rc.d/zabbix.sh to /usr/local/etc/rc.d/zabbix_old.sh
- copied and changed /etc/zabbix/zabbix_suckerd.conf to /etc/zabbix/zabbix_suckerd_old.conf
- run /usr/local/etc/rc.d/zabbix_old.sh start

/usr/local/etc/

Result:
Starting zabbix_suckerd_old.
File [/var/tmp/zabbix_suckerd.pid] exists. Is this process already running ?

Currently I've had to change the following line in the source code and recompile a new zabbix_suckerd to change this:
/usr/ports/net-mgmt/zabbix/work/zabbix-1.0/src/zabbix_sucker/zabbix_sucker.c:
242 parse_cfg_file("/etc/zabbix/zabbix_suckerd_test.conf",cfg);

Is it a good idea to maybe change this permantently, because it will now not read alternative config files? That's pretty nasty.
________
Live Sex Webshows (http://livesexwebshows.com/)

Alexei
25-04-2005, 18:50
ZABBIX 1.1 is already free of this limitation. Name and location of a configuration file can be given as command line parameter.

siebrand
25-04-2005, 20:52
Thanks for the quick answer. Looking forward to the release of 1.1 then!

(I've got the 3 environments up and running, btw, so at least there's a semi-advanced work around.)
________
Digital Vaporizer (http://vaporshop.com)