zabbix-agent安装
sed -i 's/127.0.0.1/172.16.1.101/g' /etc/zabbix/zabbix_agentd.conf
sed -i "s@^Hostname=.*@Hostname=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`@" /etc/zabbix/zabbix_agentd.conf
sed -i "s@^# HostMetadata=.*@HostMetadata=linux@" /etc/zabbix/zabbix_agentd.conf
chkconfig zabbix-agent on
service zabbix-agent restart
配置/etc/zabbix/zabbix_agentd.conf
- view plaincopy to clipboardprint?
- 01.LogFile=/tmp/zabbix_agentd.log //日志保存位置
- 02.EnableRemoteCommands=1 //允许执行远程命令
- 03.Server=xx.xx.xx.xx //agent端的ip
- 04.Hostname=abc //必须与zabbix创建的host name相同
- LogFile=/tmp/zabbix_agentd.log //日志保存位置
- EnableRemoteCommands=1 //允许执行远程命令
- Server=xx.xx.xx.xx //agent端的ip
- Hostname=abc //必须与zabbix创建的host name相同