suse11sp3、suse12 安装 zabbix-agent

 

  1、添加repo源 

suse11SP3
zypper addrepo http://download.opensuse.org/repositories/server:/monitoring/SLE_11_SP3/ server_monitoring
zypper update
suse12
zypper addrepo http://download.opensuse.org/repositories/server:/monitoring/SLE_12/ server_monitoring
zypper update

2、安装zabbix-agent
zypper install zabbix-agent

3、编辑/etc/zabbix/zabbix-agentd.conf文件
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=5 (设置zabbix日志当到达5M时自动回滚,0表示disabled)
Server=zabbix (zabbix server端的ip或主机名)
ListenPort=10050
ServerActive=zabbix (zabbix server端的ip或主机名,在这里可以改变端口号)
Hostname=zabbix_agent
Timeout=30
AllowRoot=1 (设置是否允许以root用户启动,值有1和0,0表示禁止以root用户启动)
UnsafeUserParameters=1 (设置是否允许自定义监控,值有1和0,0表示disable)
EnableRemoteCommands=1 (设置是否允许来自zabbix server端的远程命令,值有1和0,0表示不允许)
LogRemoteCommands=1 (设置是否允许日志文件以warning级别记录来自zabbix server端的远程命令,值有1和0,0表示disabled)

4、启动zabbix-agentd服务并加入开机自启动
suse11sp3:
service zabbix-agentd start
chkconfig zabbix-agentd on

suse12:
systemctl start zabbix-agentd
systemctl enable zabbix-agentd
 
posted @ 2015-11-16 14:43  细胞在生  阅读(8264)  评论(0编辑  收藏  举报