How to install Zabbix Agent for Linux and Windows

  Linux
  • Ubuntu

root@XSHQS02:~#wget https://repo.zabbix.com/zabbix/6.5/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.5-1%2Bubuntu22.04_all.deb

root@XSHQS02:~# dpkg -i zabbix-release_6.5-1+ubuntu22.04_all.deb

root@XSHQS02:~# apt-get update

root@XSHQS02:~# apt-get install zabbix-agent

Revise the Zabbix server conf file as below

root@node01:~# 

vi /etc/zabbix/zabbix_agentd.conf

# line 119: specify Zabbix server
Server=

10.0.0.30

# line 160: specify Zabbix server


ServerActive=

10.0.0.30

# line 171: change to the own hostname


Hostname=

node01.srv.world

root@node01:~# 

systemctl restart zabbix-agent


root@node01:~# 

systemctl enable zabbix-agent

  • Red Hat Enterprise Linux 8.0

[root@localhost ~]# rpm -Uvh https://repo.zabbix.com/zabbix/6.5/centos/9/x86_64/zabbix-agent-7.0.0-alpha3.release1.el9.x86_64.rpm

[root@XSHQSFW01 ~]# vim /etc/zabbix/zabbix_agentd.conf

  • CentOS 9.0

[root@XSHQSFile01 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/6.5/centos/9/x86_64/zabbix-agent-7.0.0-alpha3.release1.el9.x86_64.rpm

[root@XSHQSFile01 ~]# vim /etc/zabbix/zabbix_agentd.conf

The other step is the same as Ubuntu

  • Windows

Old version

 Agent on Windows systems

Zabbix agent on Windows runs as a Windows service.

Preparation

Zabbix agent is distributed as a zip archive. After you download the archive you need to unpack it. Choose any folder to store Zabbix agent and the configuration file, e. g.

C:\zabbix

Copy bin\zabbix_agentd.exe and conf\zabbix_agentd.conf files to c:\zabbix.

Edit the c:\zabbix\zabbix_agentd.conf file to your needs, making sure to specify a correct “Hostname” parameter.

Installation

After this is done use the following command to install Zabbix agent as Windows service:

C:\> c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -i

  Download the Windows agent from url https://www.zabbix.com/download_agents

Copy it to Windows C drive.

After download, extract the ZIP file, then [bin] and [conf] folder exist like follows. Copy [zabbix_agentd.conf] which is under the [conf] and also copy 3 [exe] files which are under the [bin] folder into a folder which you’d like to locate them.

Update the Zabbix_agent.conf file as below:

After this is done use the following command to install Zabbix agent as Windows service:

Start the Zabbix agent service manually:

Latest version

  • Install on Windows OS, config the zabbix server IP address by installing.

LEAVE A COMMENT