Setup zabbix-agent22 » Historie » Revision 3
Revision 2 (Jeremias Keihsler, 15.07.2017 15:34) → Revision 3/4 (Jeremias Keihsler, 15.07.2017 16:21)
h1. Install Zabbix Agent 2.2.x
h2. Preliminary note
also check back on zabbix-wiki http://www.zabbix.com/wiki/howto/monitor/os/linux/agentinstallonlinux (this is still for CentOS 5.x but may be of help)
h2. Requirements
* [[repo_epel|EPEL]]
h2. Agent-Install
<pre><code class="bash">
yum update
yum --enablerepo=epel install zabbix22-agent
</code></pre>
<pre><code class="bash">
vim /etc/zabbix/zabbix_agentd.conf
</code></pre>
<pre>
# line 82: change to your Zabbix-server
Server=192.168.56.1
# line 105: change to your hostname
Hostname=application.server.example.com
</pre>
<pre><code class="bash">
vim /etc/zabbix/zabbix_agent.conf
</code></pre>
<pre>
# line 13: change to your Zabbix-server
Server=192.168.56.1
</pre>
<pre><code class="bash">
systemctl start zabbix-agent
systemctl enable zabbix-agent
</code></pre>
h3. Firewall
you have to open port @10050 tcp@
<pre><code class="bash">
firewall-cmd --permanent --add-port=10050/tcp --zone=public
firewall-cmd --reload
</code></pre>
h3. Troubleshoot
The agent failed to start ... see status
see also https://www.zabbix.com/forum/showthread.php?t=46796
tried to set PID to @PIDFile=/tmp/zabbix_agentd.pid@
</code></pre>
<pre>
vim /etc/zabbix/agentd.conf
vim /usr/lib/systemd/system/zabbix-agent.service
</pre>
<pre><code class="bash">
</code></pre>
<pre>
systemctl daemon-reload
systemctl start zabbix-agent
</pre>
<pre><code class="bash">
didn't work either.
double checked that @/run/zabbix/@ was existing and had right owner/rights
everything seemed to be ok.
After another restart and reset the PID back to @PIDFile=/run/zabbix/zabbix-agentd.pid@ and another daemon-reload everything worked out ok.