zabbix 3.0 agent安装启动 March

1、添加zabbix用户群组

#groupadd zabbix
#useradd -g zabbix -m zabbix

2、下载zabbix安装包,本文用的是3.0.3版本zabbix-3.0.3.tar.gz


3、解压、编译、安装

#tar -zxvf zabbix-3.0.3.tar.gz
#cd zabbix-3.0.3
#./configure --prefix=/usr/local/zabbix --enable-agent
#make install

4、修改agentd配置文件,配置zabbix server地址以及agented自己的Hostname

#vim /usr/local/zabbix/etc/zabbix_agentd.conf
Server= ip.ip.ip.ip         #服务端ip地址
ServerActive= ip.ip.ip.ip    #服务端ip地址(主动模式)
Hostname=client01             #该值跟zabbix web上配置的主机名称要一致(配置-》主机-》主机名称)

5、配置成使用service启动关闭

#cp zabbix-3.0.3/misc/init.d/tru64/zabbix_agentd /etc/init.d/
# chmod  x /etc/init.d/zabbix_ agentd
# ln -s /usr/local/zabbix/sbin/* /usr/local/sbin/
# ln -s /usr/local/zabbix/bin/* /usr/local/bin/

6、启动、检查

#service zabbix_agentd start
#ps -ef|grep zabbix_agentd

zabbix 3.0 agent安装启动  March

#vim /tmp/zabbix_agentd.conf
31673:20170801:103234.964 Starting Zabbix Agent [Test.19131]. Zabbix 3.0.3 (revision 60173).
 31673:20170801:103234.964 **** Enabled features ****
 31673:20170801:103234.964 IPv6 support:           NO
 31673:20170801:103234.964 TLS support:            NO
 31673:20170801:103234.964 **************************
 31673:20170801:103234.964 using configuration file: /usr/local/zabbix/etc/zabbix_agentd.conf
 31673:20170801:103234.964 agent #0 started [main process]
 31674:20170801:103234.965 agent #1 started [collector]
 31676:20170801:103234.965 agent #3 started [listener #2]
 31675:20170801:103234.965 agent #2 started [listener #1]
 31677:20170801:103234.965 agent #4 started [listener #3]
 31678:20170801:103234.966 agent #5 started [active checks #1]

7、以上步骤zabbix_agentd就已经完成安装了,接下来就需要到zabbix web页面进行新增主机
zabbix 3.0 agent安装启动  March
主机名称保持和步骤4中的Hostname一致,也就是client01;
可见的名称根据需要随便填;
agent代理程序的接口中IP地址填写zabbix_agentd部署机器的IP,端口10050不变(默认端口)

上一篇:Table is marked as crashed and should be repaire (


下一篇:穿透内网实现从外网远程桌面或ssh到内网x Vtamins的博客