1.在zabbix官网https://www.zabbix.com/download下载Zabbix pre-compiled agents
2.Zabbix pre-compiled agents安装
Zabbix pre-compiled agents加压后不需要进行程序安装,可以直接使用
Last unsuccessful login: Wed Dec 27 16:25:08 CST 2017 on ssh from 10.0.25.176
Last login: Thu Jan 11 10:52:48 CST 2018 on /dev/pts/0 from 10.0.25.176
*******************************************************************************
* *
* *
* Welcome to AIX Version 7.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
[YOU HAVE NEW MAIL]
# mkdir /zabbix_agent #新建zabbix_agent目录
# mkgroup zabbix #新建zabbix用户组
# useradd -g zabbix zabbix #新建zabbix用户并加入zabbix用户组
# cd /zabbix_agent #进入zabbix_agent目录 #将文件传到zabbix_agent目录
# pwd
/zabbix_agent
# ls
zabbix_agents_3.4.0.aix7_1.power.tar.gz
# gunzip -d zabbix_agents_3.4.0.aix7_1.power.tar.gz #将文件解压
# ls
zabbix_agents_3.4.0.aix7_1.power.tar
# tar -xvf zabbix_agents_3.4.0.aix7_1.power.tar #将文件解压
x bin
x bin/zabbix_get, 4414874 bytes, 8623 media blocks.
x bin/zabbix_sender, 4543697 bytes, 8875 media blocks.
x conf
x conf/zabbix_agentd
x conf/zabbix_agentd/userparameter_examples.conf, 1359 bytes, 3 media blocks.
x conf/zabbix_agentd/userparameter_mysql.conf, 1531 bytes, 3 media blocks.
x conf/zabbix_agentd.conf, 10437 bytes, 21 media blocks.
x sbin
x sbin/zabbix_agentd, 7274915 bytes, 14209 media blocks.
# cp /zabbix_agent/conf/zabbix_agentd.conf /usr/local/etc/ #将配置文件拷贝到/usr/local/etc/
# vi zabbix_agentd.conf #编辑配置文件
Server=10.0.8.150
ServerActive=10.0.8.150
Hostname=his2
:wq
"zabbix_agentd.conf" 396 lines, 10436 characters
# zabbix_agentd -V #查看zabbix-agent版本信息
zabbix_agentd (daemon) (Zabbix) 3.4.0
Revision 71467 22 August 2017, compilation time: Aug 24 2017 07:27:57
Copyright (C) 2017 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.
Supported technology levels: 6100 and above
# cd /usr/local/etc
# ls
cachesys cachesys_database cachesys_shadow sshd.pid zabbix_agentd.conf
# cd /zabbix_agent/sbin
# ls
zabbix_agentd
# zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf #启动zabbix-agent
# mkitab zabbix_agentd:2:respawn:zabbix_agent/sbin/zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf #将zabbix-agent加入开机自启动