D
D
DVoropaev2017-08-22 11:37:26
linux
DVoropaev, 2017-08-22 11:37:26

Why doesn't zabbix-agent start?

-- Начат процесс запуска юнита zabbix-agent.service.
авг 22 11:33:59 SRV-T-APP-028 systemd[1]: PID file /run/zabbix/zabbix_agentd.pid not readable (yet?) after start.
авг 22 11:33:59 SRV-T-APP-028 systemd[1]: zabbix-agent.service never wrote its PID file. Failing.
авг 22 11:33:59 SRV-T-APP-028 systemd[1]: Failed to start Zabbix Agent.
-- Subject: Ошибка юнита zabbix-agent.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Произошел сбой юнита zabbix-agent.service.
-- 
-- Результат: failed.
авг 22 11:33:59 SRV-T-APP-028 systemd[1]: Unit zabbix-agent.service entered failed state.
авг 22 11:33:59 SRV-T-APP-028 systemd[1]: zabbix-agent.service failed.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
t_q_l, 2017-08-22
@t_q_l

Isn't it about SELinux?
For RedHat/CentOS try this:

yum install policycoreutils-python 
semanage permissive -a zabbix_agent_t

D
DrDeimos, 2017-08-22
@DrDeimos

> /run/zabbix/zabbix_agentd.pid not readable (yet?) after start.
Maybe the /run/zabbix directory doesn't exist?
Maybe the rights are not enough for him.
Try running it manually like this:

$ sudo su - zabbix -s /bin/bash
No directory, logging in with HOME=/
[email protected]:/$ /usr/sbin/zabbix_agentd
[email protected]:/$

Also check the log specified in the config in the LogFile directive

A
athacker, 2017-08-22
@athacker

What do they write in the logs of Zabbix itself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question