SNMP configuration - Zenoss style

From SysAdminWiki

Jump to: navigation, search

Make sure you have these options in your snmpd.conf file. I assume you use zenoss as a public and are using a version of net-snmp.


#This line will map the community name "public" into a "security name":
#       sec.name  source          community
com2sec notConfigUser  default       zenoss

#This line will map the security name into a group name:
#       groupName      securityModel securityName
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

# This line will create a view for us to let the group have rights to:
# Make at least  snmpwalk -v 1 localhost -c public system fast again.
#       name           incl/excl     subtree         mask(optional)
view    systemview    included   .1

#This line will grant the group read-only access to the systemview view.
#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  systemview none none

#System contact information
# It is also possible to set the sysContact and sysLocation system variables through the snmpd.conf file:

syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)


#Extra information ΒΆ
#See the snmpd.conf manual page, and the output of "snmpd -H".

trapcommunity zenoss
trapsink default
Advertisement