Hello,
I'm trying to run two proxies on the same host. I usually have them running each one on its own host, but if a host fails, I'd like the proxy to keep running on the other host .
Each proxy listens only on its IP address (virtual ips are managed with pacemaker).
I created two zabbix proxy configs and an instantiable systemd unit file, but when I start the second one, it fails with the error log:
Am I missing something here?
I'm running zabbix 6.0 on Rocky 9 using the packages from the zabbix official repo: zabbix-proxy-mysql-6.0.7-1.el9.x86_64
/etc/zabbix/zabbix_proxy-1.conf
/etc/zabbix/zabbix_proxy-2.conf
/usr/lib/systemd/system/[email protected]
I'm trying to run two proxies on the same host. I usually have them running each one on its own host, but if a host fails, I'd like the proxy to keep running on the other host .
Each proxy listens only on its IP address (virtual ips are managed with pacemaker).
I created two zabbix proxy configs and an instantiable systemd unit file, but when I start the second one, it fails with the error log:
cannot initialize runtime control service: "rtc" service is already running.
I'm running zabbix 6.0 on Rocky 9 using the packages from the zabbix official repo: zabbix-proxy-mysql-6.0.7-1.el9.x86_64
/etc/zabbix/zabbix_proxy-1.conf
Code:
Server=10.0.0.10 Hostname=Zabbix Proxy 1 SourceIP=10.0.0.11 ListenIP=10.0.0.11 DBHost=localhost DBName=zproxy1 DBUser=zproxy1 DBPassword=zproxy1 LogFile=/var/log/zabbix/zabbix_proxy-1.log PidFile=/run/zabbix/zabbix_proxy-1.pid
Code:
Server=10.0.0.10 Hostname=Zabbix Proxy 2 SourceIP=10.0.0.12 ListenIP=10.0.0.12 DBHost=localhost DBName=zproxy2 DBUser=zproxy2 DBPassword=zproxy2 LogFile=/var/log/zabbix/zabbix_proxy-2.log PidFile=/run/zabbix/zabbix_proxy-2.pid
Code:
[Unit] Description=Zabbix Proxy %i After=syslog.target After=network.target After=mysql.service After=mysqld.service After=mariadb.service [Service] Environment="CONFFILE=/etc/zabbix/zabbix_proxy-%i.conf" EnvironmentFile=-/etc/sysconfig/zabbix-proxy Type=forking Restart=on-failure PIDFile=/run/zabbix/zabbix_proxy-%i.pid KillMode=control-group ExecStart=/usr/sbin/zabbix_proxy -c $CONFFILE ExecStop=/bin/kill -SIGTERM $MAINPID RestartSec=10s TimeoutSec=0 [Install] WantedBy=multi-user.target
I completely misinterpreted everything..:P Just forget this comment..:P
Comment