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
