Skip to content

Instantly share code, notes, and snippets.

@javierwilson
Created January 12, 2017 05:15
Show Gist options
  • Select an option

  • Save javierwilson/02dc0a45640abc19cbef0a9f5e7be567 to your computer and use it in GitHub Desktop.

Select an option

Save javierwilson/02dc0a45640abc19cbef0a9f5e7be567 to your computer and use it in GitHub Desktop.
SNMP config
#
# /etc/snmp/snmpd.conf
#
# gives read-only access to nagios_server using secname, secgroup
#
# sec.name source community
com2sec localhost 127.0.0.1 public
com2sec nagios MONITOR public
# groupName securityModel securityName
group Local v1 localhost
group Nagios v1 nagios
group Local v2c localhost
group Nagios v2c nagios
# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view all included .1
view all included .iso.org.dod.internet.mgmt F8
view all included .iso 80
# group context sec.model sec.level prefix read write notif
access Local "" any noauth exact all none none
access Nagios "" any noauth exact all none none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment