/etc/snmp/snmpd.conf
来源:互联网 发布:门禁卡破解软件 编辑:程序博客网 时间:2024/04/20 02:07
#我的snmp配置文件可以和MRTG、cacti配合使用
####
# First, map the community name "public" into a "security name"
# sec.name source community
com2sec notConfigUser 127.0.0.1 public #定义community名称为 public,映射到安全名 notConfigUser。
####
# Second, map the security name into a group name:
# groupName securityModel securityName
group notConfigGroup v1 notConfigUser #定义安全用户名notConfigUser映射到notConfigGroup组。
group notConfigGroup v2c notConfigUser
####
# Third, create a view for us to let the group have rights to: #定义一个view,来决定notConfigUser可以操作的范围。
# Make at least snmpwalk -v 1 localhost -c public system fast again. #定义可查看的snmp的范围。
# name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view all included .1 80
####
# Finally, grant the group read-only access to the systemview view. #给notConfigGroup组所定义view名 all 以只读权限。
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact all none none
#access notConfigGroup "" any noauth exact mib2 none none
# -----------------------------------------------------------------------------
# Here is a commented out example configuration that allows less
# restrictive access.
# YOU SHOULD CHANGE THE "COMMUNITY" TOKEN BELOW TO A NEW KEYWORD ONLY
# KNOWN AT YOUR SITE. YOU *MUST* CHANGE THE NETWORK TOKEN BELOW TO
# SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.
## sec.name source community
#com2sec local localhost COMMUNITY
#com2sec mynetwork NETWORK/24 COMMUNITY
## group.name sec.model sec.name
#group MyRWGroup any local
#group MyROGroup any mynetwork
#
#group MyRWGroup any otherv3user
#...
## incl/excl subtree mask
#view all included .1 80
## -or just the mib2 tree-
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
## context sec.model sec.level prefix read write notif
#access MyROGroup "" any noauth 0 all none none
#access MyRWGroup "" any noauth 0 all all all
- /etc/snmp/snmpd.conf
- Net-snmp的agent配置文件snmpd.conf
- net-snmp的配置文件snmpd.conf配置说明
- net-snmp的配置文件snmpd.conf配置说明
- snmpd.conf
- /etc/snmp/snmp.conf:line xx: warning: Unknown token: xxxxx
- SNMPD.CONF配置说明
- snmpd.conf配置
- SNMPD.CONF配置说明
- snmpd.conf 详解
- snmpd.conf的基础配置
- GDB调试net-snmp的snmpd
- Linux下的snmpd.conf配置说明
- net-snmp配置文件snmp.conf
- snmpd
- /etc/httpd/conf/httpd.conf
- snmp无法启动--snmpd dead but pid file exists
- Linux下snmpd.conf说明--扩展B:可执行脚本
- 沉思录
- Hello world ! Sharepoint webpart!
- eclipse中svn和TortoiseSVN更改账号的方法
- Flex与Flash的交互_2(深层对象交互示例)
- kan
- /etc/snmp/snmpd.conf
- 没有源代码的DLL文件变为强命名的(Strong Name)
- MRTG
- 动态规划学习之石子归并
- 基本原则:强烈建议在站点中不要使用window.open方法
- Cacti
- JQUERY的LOAD使用心得
- c++删除文件操作remove
- RedHat Enterprise Linux 5 问题解决列表