一、安装zabbix-agnet

1、zabbix-agent源下载址载:http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/

#添加源

wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
sudo dpkg -i zabbix-release_3.2-1+xenial_all.deb
sudo apt update

#安装zabbix-agnet

sudo apt-get install zabbix-agent

2、修改配置文件

 vi /etc/zabbix/zabbix_agentd.conf
Server=10.0.100.208   #zabbix-server服务器IP
ServerActive=10.0.100.208
Hostname=Zabbix server

3、启动服务

/etc/init.d/zabbix-agent restart
/etc/init.d/zabbix-agent start
/etc/init.d/zabbix-agent stop

4、添加开机启动zabbix-agent服务

root@HDController:~# systemctl enable zabbix-agent
Synchronizing state of zabbix-agent.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable zabbix-agent
insserv: script memcached: service httpd already provided!
insserv: script memcached: service httpd already provided!
或
#添加到结尾 vi /etc/rc.local #zabbix-agent start boot /etc/init.d/zabbix-agent start

相关文章:

  • 2021-09-23
  • 2021-09-11
  • 2021-07-29
  • 2021-09-03
  • 2021-05-12
  • 2021-10-28
  • 2022-01-15
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2021-05-28
  • 2021-04-19
  • 2021-10-31
  • 2021-12-20
相关资源
相似解决方案