/Etc/snmp/snmpd. conf

Source: Internet
Author: User

# 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.