首頁 > linux, 網路相關 > NET-SNMP configure File (運用在Cacti主機上)

NET-SNMP configure File (運用在Cacti主機上)

將 /etc/snmpd/snmpd.conf 改成以下後 , service snmpd restart 後就可以了


rocommunity //community name (read-only)syslocation //主機所在位置(說明)syscontact //管理者 email

# sec.name source communitycom2sec paranoid 127.0.0.1 public#com2sec paranoid default public#com2sec readonly default public#com2sec readwrite default private

##### Second, map the security names into group names:

# sec.model sec.namegroup MyROSystem v1 paranoidgroup MyROSystem v2c paranoidgroup MyROSystem usm paranoidgroup MyROGroup v1 readonlygroup MyROGroup v2c readonlygroup MyROGroup usm readonlygroup MyRWGroup v1 readwritegroup MyRWGroup v2c readwritegroup MyRWGroup usm readwrite

##### Third, create a view for us to let the groups have rights to:

# incl/excl subtree maskview all included .1 80view system included .iso.org.dod.internet.mgmt.mib-2.system

##### Finally, grant the 2 groups access to the 1 view with different# write permissions:

# context sec.model sec.level match read write notifaccess MyROSystem "" any noauth exact all none none#access MyROSystem "" any noauth exact system none noneaccess MyROGroup "" any noauth exact all none noneaccess MyRWGroup "" any noauth exact all all none

好文幫推 :

本站文章歡迎您原文引用, 還請您標示原出處喔 !!

引用網址 :

Categories: linux, 網路相關Tags:
  1. 目前尚無任何的評論。
  1. 目前尚無任何 trackbacks 和 pingbacks。