# My SNMP configuration file can be used with MRTG and cacti
####
# First, map the community name "public" into a "security name"
# Sec. Name source community
Com2sec notconfiguser 127.0.0.1 public # define the community name as public and map it to the security name notconfiguser.
####
# Second, map the Security name into a group name:
# Groupname securitymodel securityname
Group notconfiggroup V1 notconfiguser # defines that the security user name notconfiguser maps to the notconfiggroup group.
Group notconfiggroup v2c notconfiguser
####
# Third, create a view for us to let the group have rights to: # define a view to determine the range that notconfiguser can operate on.
# Make at least snmpwalk-V 1 localhost-C public system fast again. # define the SNMP range that can be viewed.
# Name incl/excl subtree mask (optional)
View systemview embedded ded. 1.3.6.1.2.1.1
View systemview embedded ded. 1.3.6.1.2.1.25.1.1
View All supported ded. 1 80
####
# Finally, grant the Group read-only access to the systemview view. # define the view name all for the notconfiggroup with read-only permission.
# Group context sec. Model sec. Level prefix read write notif
Access notconfiggroup "" any noauth exact all none
# Access notconfiggroup "" any noauth exact mib2 none
#-----------------------------------------------------------------------------
# Here is a commented out example configuration that allows less
# Restrictive access.
# You shoshould change the "Community" token below to a New Keyword only
# Known at your site. You * Must * change the network token below
# 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 supported ded. 1 80
#-Or just the mib2 tree-
# View mib2 shortded .iso.org. DOD. Internet. Mgmt. mib-2 FC
# View mib2 shortded .iso.org. DOD. Internet. Mgmt. mib-2 FC
## context sec. model sec. level prefix read write notif
# access myrogroup "" any noauth 0 all none
# access myrwgroup "" any noauth 0 all