zabbix通過snmp監控網絡設備


首先需要在zabbix的server端或proxy端安裝snmpd服務

安裝:

yum -y install net-snmp*

  

查看版本:

[root@Check3 ~]# snmpd -v

NET-SNMP version: 5.5
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

  

snmp v3的安全級別有三種:

noAuthNopriv             不認證也不加密

authNopriv               只認證不加密

authpriv                 既加密又認證

 

 

配置snmp v3

net-snmp-config --create-snmpv3-user -ro -a UserPasswd -x DES -X UserDes User  #需關閉snmp服務后配置

  

User                    安全名稱

UserPasswd              驗證口令

UserDes                 私鑰

 

或者

[root@Check3 ~]# vim /etc/snmp/snmptrapd.conf

createUser myuser MD5 mypassword DES myotherpassword   添加

官方的解釋是:

 Where myuser is the security name you want to use, and mypassword is your authentication password and myotherpassword is your encryption password (or leave it blank if you want it to be the same or don't want to use encryption).

 

啟動服務:

[root@Check3 ~]# /etc/init.d/snmpd restart
停止 snmpd:                        [確定]
正在啟動 snmpd:                     [確定]

  

通過snmp查看交換機接口狀態:

snmpwalk -v 3 -u User -a MD5 -A UserPasswd -x DES -X UserDes -l authpriv 192.168.1.1 1.3.6.1.2.1.2.2.1.8

User                             安全名稱

UserPasswd                       驗證口令

UserDes                          私鑰

authpriv                         既加密又認證

1.3.6.1.2.1.2.2.1.8              查看接口狀態的OID

 

其他的建議參考:

 http://www.ttlsa.com/zabbix/zabbix-snmp-install/

 

 配置zabbix使用snmp監控設備、主機

其他的模板按照這個修改,都修改完成后直接應用到主機,前提是主機的snmp需要配置好

網絡設備配置snmp v3請見下文

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM