下载地址为https://www.zabbix.com/download_sources
groupadd zabbix
useradd -g zabbix -m zabbix
yum install unixODBC-devel net-snmp-devel libxml2-devel libcurl-devel libevent-devel pcre*
./configure --prefix=/usr/local/zabbix --enable-agent
make install
/usr/local/zabbix/etc/zabbix_agentd.conf
Server= = #服务端ip地址
ServerActive= = #服务端ip地址(主动模式)
Hostname= #该值跟zabbix web上配置的主机名称要一致(配置-》主机-》主机名称)
cp zabbix/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/
7、启动agent
service zabbix_agentd start
查看进程
ps -ef |grep zabbix
zabbix 29256 1 0 07:05 ? 00:00:00 zabbix_agentd
zabbix 29257 29256 0 07:05 ? 00:00:00 zabbix_agentd: collector [idle 1 sec]
zabbix 29258 29256 0 07:05 ? 00:00:00 zabbix_agentd: listener #1 [waiting for connection]
zabbix 29259 29256 0 07:05 ? 00:00:00 zabbix_agentd: listener #2 [waiting for connection]
zabbix 29260 29256 0 07:05 ? 00:00:00 zabbix_agentd: listener #3 [waiting for connection]
zabbix 29261 29256 0 07:05 ? 00:00:00 zabbix_agentd: active checks #1 [idle 1 sec]
zabbix 29265 29251 0 07:05 pts/0 00:00:00 grep zabbix
转载请注明出处: http://www.julyme.com/20180524/105.html
打赏一个呗~~(微信)
Julyme
感觉还行吧。
Julyme的IT技术分享