ubuntu 安装zabbix_agent端

root@(none):~# apt-get install zabbix-agent
root@(none):~# vi /etc/zabbix/zabbix_agentd.conf
Server=123.57.36.227
ServerActive=123.57.36.227
Hostname=svn_server
Server=123.57.36.227
ServerActive=123.57.36.227
Hostname=123.56.78.103
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
"/etc/zabbix/zabbix_agentd.conf.d/server.conf" 
root@(none):~# /etc/init.d/zabbix-agent restart
 * zabbix_agentd stopping...                                             [ OK ] 
 * zabbix_agentd starting...                                             [ OK ]
root@(none):~# netstat -lnutp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      1310/vsftpd     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      769/sshd        
tcp        0      0 0.0.0.0:10050           0.0.0.0:*               LISTEN      23986/zabbix_agentd
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1263/php-fpm.conf)
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      5276/mysqld     
tcp        0      0 0.0.0.0:3690            0.0.0.0:*               LISTEN      2524/svnserve   
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1288/nginx.conf 
tcp6       0      0 :::10050                :::*                    LISTEN      23986/zabbix_agentd
udp        0      0 123.56.78.103:123       0.0.0.0:*                           1148/ntpd       
udp        0      0 10.172.91.37:123        0.0.0.0:*                           1148/ntpd       
udp        0      0 127.0.0.1:123           0.0.0.0:*                           1148/ntpd       
udp        0      0 0.0.0.0:123             0.0.0.0:*                           1148/ntpd       
udp6       0      0 :::123                  :::*                                1148/ntpd 
原文地址:https://www.cnblogs.com/bass6/p/5531357.html