如何使用yum安裝配置Zabbix

CentOS中如何使用yum安裝配置Zabbix?相信大部分人都還沒學(xué)會(huì)這個(gè)技能,為了讓大家學(xué)會(huì),給大家總結(jié)了以下內(nèi)容,話不多說,一起往下看吧。?
1、node-122節(jié)點(diǎn)安裝SNMP,作為服務(wù)端:# yum -y install net-snmp?
2、node-122節(jié)點(diǎn)修改snmpd.conf配置文件:?
# cd /etc/snmp/?
# cp snmpd.conf{,.bak}?
# vim snmpd.conf?
com2sec notConfigUser default marion?
group notConfigGroup v2c notConfigUser?
view systemview included .1.3.6.1?
access notConfigGroup "" any noauth exact systemview none none?
說明:?
com2sec notConfigUser default marion:用戶名、訪問IP白名單(default代表所有IP都可訪問)、認(rèn)證密碼?
group notConfigGroup v2c notConfigUser:組名、SNMP版本、用戶名?
view systemview included .1.3.6.1:視圖名稱、包含(incl/excl)、subtree,.1.3.6.1表示權(quán)限,以此開頭的都能訪問,比如.1.3.6.1.4.1.2021.10.1.3和.1.3.6.1.2.1.2?
3、node-122節(jié)點(diǎn)啟動(dòng)SNMP:?
# systemctl start snmpd?
# systemctl status snmpd?
# ps aux | grep snmpd?
# ss -tunlp | grep -w :161?
# systemctl enable snmpd?
4、zabbix-server節(jié)點(diǎn)安裝SNMP,作為客戶端:# yum -y install net-snmp-utils?
5、zabbix-server節(jié)點(diǎn)使用OID和MIB獲取node-122節(jié)點(diǎn)相關(guān)信息:?
# snmpwalk -v2c -c marion 192.168.0.122 .1.3.6.1.4.1.2021.10.1.3?
# snmpwalk -v2c -c marion 192.168.0.122 .1.3.6.1.2.1.2?
# snmpwalk -v2c -c marion 192.168.0.122 laLoad?
# snmpwalk -v2c -c marion 192.168.0.122 ifDescr?
# snmpwalk -v2c -c marion 192.168.0.122 ifOperStatus?
# snmpwalk -v2c -c marion 192.168.0.122 ifHCOutOctets?
# snmpwalk -v2c -c marion 192.168.0.122 ifHCInOctets?
6、Zabbix Web修改宏{$SNMP_COMMUNITY}所對(duì)應(yīng)的值,默認(rèn)為public:?
Administration --> General --> Macros --> Update?
7、Zabbix Web添加node-122節(jié)點(diǎn)的SNMP監(jiān)控接口:?
8、node-122節(jié)點(diǎn)取消之前所有鏈接的模板(監(jiān)控項(xiàng)有沖突),并重新鏈接SNMP監(jiān)控模板:?
勾選所有監(jiān)控項(xiàng),點(diǎn)擊“Check now”:?
9、查看最新監(jiān)控?cái)?shù)據(jù):?
以上就是CentOS中使用yum安裝配置Zabbix的方法,詳細(xì)使用情況還需要大家自己親自動(dòng)手使用過才能領(lǐng)會(huì)。如果想了解更多相關(guān)內(nèi)容,歡迎關(guān)注http://www.vecloud.com/資訊頻道!