zabbix_agent安装(Centos+Ubuntu)
生活随笔
收集整理的這篇文章主要介紹了
zabbix_agent安装(Centos+Ubuntu)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Centos安裝 安裝依賴包
? ??yum -y install mysql-devel libcurl-devel net-snmp-devel 添加用戶
groupadd?zabbix useradd?zabbix?-g?zabbix 獲取zabbix
wget?http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz?
編譯安裝zabbix
a) tar -zxvf zabbix-2.2.2
b) cd zabbix-2.2.2
c) ./configure --prefix=/usr/local/zabbix --enable-agent
d)?make && make?install 修改配置文件(zabbix-2.2.2目錄)
a)?cp?misc/init.d/fedora/core/zabbix_agentd?/etc/init.d/
b)?sed?-i?'s/BASEDIR=\/usr\/local/BASEDIR=\/usr\/local\/zabbix/g'?/etc/init.d/zabbix_agentd 添加服務接口
cat >>/etc/services <<EOF
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
EOF
修改配置:/usr/local/zabbix/etc/zabbix_agentd.conf
a)?Server:服務器IP
b)?Hostname:本機IP 啟用服務
a)?/etc/init.d/zabbix_agentd?start
b) ?echo?"/etc/init.d/zabbix_agentd?start"?>>?/etc/rc.local ? ? Ubuntu安裝 Ubuntu和Centos的步驟有兩個不同的地方 1、安裝依賴包 sudo apt-get install libmysqld-dev
sudo apt-get install curl libcurl3 libcurl3-dev
http://blog.csdn.net/wide288/article/details/17393723 sudo apt-get install net-snmp
? 2、啟動服務報錯:/etc/init.d/zabbix_agentd: 行 16: /etc/init.d/functions: 沒有那個文件或目錄 ? ? ? ? ? ?functions可去群中下載
? ??yum -y install mysql-devel libcurl-devel net-snmp-devel
groupadd?zabbix useradd?zabbix?-g?zabbix
wget?http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz?
a) tar -zxvf zabbix-2.2.2
b) cd zabbix-2.2.2
c) ./configure --prefix=/usr/local/zabbix --enable-agent
d)?make && make?install
a)?cp?misc/init.d/fedora/core/zabbix_agentd?/etc/init.d/
b)?sed?-i?'s/BASEDIR=\/usr\/local/BASEDIR=\/usr\/local\/zabbix/g'?/etc/init.d/zabbix_agentd
cat >>/etc/services <<EOF
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
EOF
a)?Server:服務器IP
b)?Hostname:本機IP
a)?/etc/init.d/zabbix_agentd?start
b) ?echo?"/etc/init.d/zabbix_agentd?start"?>>?/etc/rc.local
sudo apt-get install curl libcurl3 libcurl3-dev
http://blog.csdn.net/wide288/article/details/17393723 sudo apt-get install net-snmp
? 2、啟動服務報錯:/etc/init.d/zabbix_agentd: 行 16: /etc/init.d/functions: 沒有那個文件或目錄 ? ? ? ? ? ?functions可去群中下載
?
總結
以上是生活随笔為你收集整理的zabbix_agent安装(Centos+Ubuntu)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 论文笔记之:RATM: RECURREN
- 下一篇: ubuntu wireshark 普通用