I tried installing Zabbix Agent on Centos 7, the following is the script I have used
sudo -S rpm -ivh https://repo.zabbix.com/zabbix/4.0/r...el7.noarch.rpm
sudo -S yum install -y zabbix-agent
sudo -S sed -i 's/# EnableRemoteCommands=0/EnableRemoteCommands=1/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/# LogRemoteCommands=0/LogRemoteCommands=1/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/Server=127.0.0.1/Server=10.192.170.83/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/# ListenPort=10050/ListenPort=10050/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/ServerActive=127.0.0.1/ServerActive=10.192.170.83/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/Hostname=Zabbix server/Hostname=n014.c0001.exacluster.local/g' /etc/zabbix/zabbix_agentd.conf
sudo -S systemctl restart zabbix-agent
sudo -S systemctl enable zabbix-agent
When I run the script this is the output I am getting
Retrieving https://repo.zabbix.com/zabbix/4.0/r...el7.noarch.rpm
Preparing... ################################# [100%]
package zabbix-release-4.0-1.el7.noarch is already installed
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: sjc.edge.kernel.org
* extras: sjc.edge.kernel.org
* updates: mirrors.xtom.com
Package zabbix-agent-4.0.18-1.el7.x86_64 already installed and latest version
Nothing to do
* zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2020-03-13 13:31:11 UTC; 117ms ago
Main PID: 166097
CGroup: /system.slice/zabbix-agent.service
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: Starting Zabbix Agent...
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: zabbix-agent.service: Supervising process 166097 which is not our child. We'll most likely... exits.
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: Started Zabbix Agent.
Hint: Some lines were ellipsized, use -l to show in full.
I tried with all versions of Zabbix Agent, but nothing seems working. Any one could please help
sudo systemctl status zabbix-agent
~
sudo -S rpm -ivh https://repo.zabbix.com/zabbix/4.0/r...el7.noarch.rpm
sudo -S yum install -y zabbix-agent
sudo -S sed -i 's/# EnableRemoteCommands=0/EnableRemoteCommands=1/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/# LogRemoteCommands=0/LogRemoteCommands=1/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/Server=127.0.0.1/Server=10.192.170.83/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/# ListenPort=10050/ListenPort=10050/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/ServerActive=127.0.0.1/ServerActive=10.192.170.83/g' /etc/zabbix/zabbix_agentd.conf
sudo -S sed -i 's/Hostname=Zabbix server/Hostname=n014.c0001.exacluster.local/g' /etc/zabbix/zabbix_agentd.conf
sudo -S systemctl restart zabbix-agent
sudo -S systemctl enable zabbix-agent
When I run the script this is the output I am getting
Retrieving https://repo.zabbix.com/zabbix/4.0/r...el7.noarch.rpm
Preparing... ################################# [100%]
package zabbix-release-4.0-1.el7.noarch is already installed
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: sjc.edge.kernel.org
* extras: sjc.edge.kernel.org
* updates: mirrors.xtom.com
Package zabbix-agent-4.0.18-1.el7.x86_64 already installed and latest version
Nothing to do
* zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2020-03-13 13:31:11 UTC; 117ms ago
Main PID: 166097
CGroup: /system.slice/zabbix-agent.service
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: Starting Zabbix Agent...
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: zabbix-agent.service: Supervising process 166097 which is not our child. We'll most likely... exits.
Mar 13 13:31:11 n0014.c0001.exacluster.local systemd[1]: Started Zabbix Agent.
Hint: Some lines were ellipsized, use -l to show in full.
I tried with all versions of Zabbix Agent, but nothing seems working. Any one could please help
sudo systemctl status zabbix-agent
~
Comment