永遠的橘子園

Linux CentOS SNMP設定


1)安裝snmp套件
  # yum install net-snmp net-snmp-devel net-snmp-utils

2)編輯 conf
  # vim /etc/snmp/snmpd.conf

#==========================================================
com2sec local localhost public
com2sec mynetwork 192.168.0.0/24 public

group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup v1 mynetwork
group MyRWGroup v2c mynetwork

view all included .1                   80
#view     systemview included .1.3.6.1.2.1.1
view     systemview included .1.3.6.2.1.2
#view systemview included .1.3.6.1.2.1.25.1.1

access MyROGroup  "" any noauth prefix all none none
access MyRWGroup  "" any noauth prefix all all all

syslocation    Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
##============================================================

 

心情小語:


縱使被說壞話、被討厭,也沒什麼好在意的。
因為「對方如何看你」,那是對方的事情。
                                           2016-11-13
**********************************

八月 2018
« 六月    
 1234
567891011
12131415161718
19202122232425
262728293031