Discuz! Board

标题: zabbix-agent安装方法 [打印本页]

作者: zhoulei    时间: 2015-9-17 17:06
标题: zabbix-agent安装方法
1、使用root用户登录
2、wget http://10.10.114.116/whaley_tools/zabbix_agent_install.sh (123.59.77.3)
3、sh zabbix_agent_install.sh

注:SNAT主机安装是注意添加跳板机ip到配置文件中,如下:
sed -i '/^ServerActive=/s/$/,10.10.10.1:10051/g' /etc/zabbix/zabbix_agentd.conf
sed -i '/^Server=/s/$/,10.10.10.1/g' /etc/zabbix/zabbix_agentd.conf;

启动zabbix-agent出现如下报错
Starting Zabbix agent: zabbix_agentd [3534]: cannot open config file [/etc/zabbix/zabbix_agentd.conf]: [13] Permission denied
[FAILED]
Shutting down Zabbix agent: [FAILED]
Starting Zabbix agent: zabbix_agentd [3560]: cannot open config file [/etc/zabbix/zabbix_agentd.conf]: [13] Permission denied
[FAILED]
解决方法:

zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf  zabbix-server端修改端口:












欢迎光临 Discuz! Board (http://123.59.83.120:8080/) Powered by Discuz! X3.2