标签:zabbix-agent
1)解压 tar -zxvf zabbix-2.0.1.tar.gz 2)安装 cd zabbix-2.0.1 ./configure --prefix=/opt/zabbix_agent --enable-agent make install 3)安装服务 cat >>/etc/services<< zabbix-agent 10050/ Zabbix Agent zabbix-agent 10050/udp Zabbix Agent zabbix-trapper 10051/ Zabbix Trapper zabbix-trapper 10051/udp Zabbix Trapper 4)修改配置文件 vi /opt/zabbix_agent/etc/zabbix_agent.conf 修改Zabbix server的ip Server= #若本机不是server,则修改 5)创建服务 cp misc/init.d/fedora/core/zabbix_agentd /etc/init.d/ chmod a+x /etc/init.d/zabbix_* * 修改 /etc/init.d/zabbix_agentd 变量定义: BASEDIR=/opt/zabbix_agent FULLPATH=$BASEDIR/s/$ARY_NAME #configuration file CONF_FILE=$BASEDIR/etc/zabbix_agentd.conf action $"Starting $ARY_NAME: " $FULLPATH -c $CONF_FILE 6)启动 service zabbix_agentd start ps ax|grep zabbix_agentd 7)添加到系统目录 ln -s /opt/zabbix_agent/sbin/* /usr/local/sbin/ ln -s /opt/zabbix_agent/bin/* /usr/local/bin/ 8)测试,下面的命令需要在server端执行,其中是agent的ip zabbix_get -s192.168.60.22 -p10050 -k"system.uptime"。。。
标签:zabbix-agent
原文地址:http://yunweipy.blog.51cto.com/10683003/1833605