Zabbix Agent安裝(linux版)

來源:互聯網
上載者:User

標籤:linux   agent   zabbix   

1. 查看linux系統版本及核心;

[[email protected] tools]# uname -r2.6.32-431.3.1.el6.x86_64

 

2. 建立使用者名稱和組;

[[email protected] ~]#groupadd zabbix[[email protected] ~]#useradd –g zabbixzabbix

 

3. 建立新目錄;

[[email protected] ~]# mkdir /root/tools[[email protected] ~]#mkdir /etc/zabbix[[email protected] ~]#chown –Rzabbix:zabbix /etc/zabbix[[email protected] ~]# cd tools/

 

4. 下載zabbix agent;

[[email protected]]#wget http://www.zabbix.com/downloads/2.2.1/zabbix_agents_2.2.1.linux2_6.amd64.tar.gz


 

5. 解壓zabbix agent;

[[email protected]]#tar zxvfzabbix_agents_2.2.1.linux2_6.amd64.tar.gz –C /etc/zabbix

 

6. 編輯zabbix設定檔;

[[email protected] ~]#vim/etc/zabbix/conf/zabbix_agentd.conf修改為:LogFile=/etc/zabbix/zabbix_agentd.log   #指定記錄檔目錄;Server=10.9.80.128   #監控伺服器端IP地址;


 

7. 啟動zabbix agent;

[[email protected] conf]#/etc/zabbix/sbin/zabbix_agentd -c /etc/zabbix/conf/zabbix_agent.conf [[email protected] conf]# ps -ef |grepzabbix_agentzabbix    2161    1  0 19:51 ?        00:00:00 /etc/zabbix/sbin/zabbix_agentd-c /etc/zabbix/conf/zabbix_agentd.confzabbix    2162 2161  0 19:51 ?        00:00:00/etc/zabbix/sbin/zabbix_agentd: collector [idle 1 sec]              zabbix    2163 2161  0 19:51 ?        00:00:00/etc/zabbix/sbin/zabbix_agentd: listener #1 [waiting for connection]zabbix    2164 2161  0 19:51 ?        00:00:00/etc/zabbix/sbin/zabbix_agentd: listener #2 [waiting for connection]zabbix    2165 2161  0 19:51 ?        00:00:00/etc/zabbix/sbin/zabbix_agentd: listener #3 [waiting for connection]zabbix    2166 2161  0 19:51 ?        00:00:00/etc/zabbix/sbin/zabbix_agentd: active checks #1 [idle 1 sec]       root      2169 2044  0 19:51 pts/0    00:00:00 grep zabbix_agent [[email protected] conf]# netstat -lntp|grep -i 10050tcp        0     0 0.0.0.0:10050              0.0.0.0:*                  LISTEN      2161/zabbix_agentd


本文出自 “jerry在路上” 部落格,請務必保留此出處http://jerry0117.blog.51cto.com/1664014/1537566

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.