All,
I have recently transitioned my customer from a Zabbix appliance to a more enterprise-normal server setup. I am new to RHEL7 (but not Linux or Zabbix, in general) and am having some troubles getting the systemd unit file for Zabbix to work (at least, work as expected).
OS: RHEL 7.2
DB: Oracle 11g2
Zabbix: 3.2.1
As it stands, now, if I start zabbix_server from directly from the command line, the server starts up and everything is fine. We are collecting ~151 points/second across ~85 hosts (give or take) at the moment. My issue seems only with the systemd service file. I could set this up as scripts in /etc/init.d (old way) but would like to try to use the new tool (systemd). I have written a systemd unit file and deployed it as well as I know how. When I try to run it, though, zabbix_server does not start. I'm hoping someone here can point me in the right direction.
Process:
Unit File (I have tried Type=forking and Type=oneshot):
Status output:
Again, note, if I issue /opt/zabbix/sbin/zabbix_server from the command line, all is well and the server service starts up with all pollers, etc.
Does anyone have a working set of RHEL/CentOS7 unit files (zabbix-server, zabbix-java, and zabbix-agentd)? I have created all three but not had much luck in getting them to work.
Thanks, Jon
I have recently transitioned my customer from a Zabbix appliance to a more enterprise-normal server setup. I am new to RHEL7 (but not Linux or Zabbix, in general) and am having some troubles getting the systemd unit file for Zabbix to work (at least, work as expected).
OS: RHEL 7.2
DB: Oracle 11g2
Zabbix: 3.2.1
Code:
./configure --prefix=/opt/zabbix --enable-server --enable-agent --enable-java --enable-ipv6 --with-oracle=yes --with-net-snmp --with-libcurl --with-libxml2 --with-ssh2 --with-iconv
Process:
Code:
vi zabbix-server.service cp zabbix-server.service /etc/systemd/system cd /etc/systemd/system systemctl enable zabbix-server.service [Seemingly successful] systemctl daemon-reload [Not needed but done for posterity] systemctl start zabbix-server [Seemingly successful] systemctl status zabbix-server [Output below] ps -ef | grep zabbix_server [Nothing listed]
Code:
[Unit] Description=Zabbix Server After=syslog.target network.target [Service] Type=forking ExecStart=/opt/zabbix/sbin/zabbix_server ExecReload=/opt/zabbix/sbin/zabbix_server -R config_cache_reload RemainAfterExit=yes PIDFile=/tmp/zabbix_server.pid [Install] WantedBy=multi-user.target
Code:
● zabbix-server.service - Zabbix Server Loaded: loaded (/etc/systemd/system/zabbix-server.service; enabled; vendor preset: disabled) Active: active (exited) since Mon 2016-11-14 11:30:52 EST; 24s ago Main PID: 75122 (code=exited, status=0/SUCCESS) CGroup: /system.slice/zabbix-server.service Nov 14 11:30:52 HRAOAP15XHDC02 systemd[1]: Starting Zabbix Server... Nov 14 11:30:52 HRAOAP15XHDC02 systemd[1]: Started Zabbix Server.
Does anyone have a working set of RHEL/CentOS7 unit files (zabbix-server, zabbix-java, and zabbix-agentd)? I have created all three but not had much luck in getting them to work.
Thanks, Jon
Comment