SHARE
TWEET

Default SNMPd Configuration

cyid Sep 4th, 2014 806 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###########################################################################
  2. #
  3. # snmpd.conf
  4. #
  5. #   - created by the snmpconf configuration program
  6. #
  7. ###########################################################################
  8. # SECTION: Trap Destinations
  9. #
  10. #   Here we define who the agent will send traps to.
  11.  
  12. # trapsink: A SNMPv1 trap receiver
  13. #   arguments: host [community] [portnum]
  14.  
  15. trapsink  192.168.0.1 public
  16.  
  17. # trap2sink: A SNMPv2c trap receiver
  18. #   arguments: host [community] [portnum]
  19.  
  20. trap2sink  192.168.0.1 public
  21.  
  22. # authtrapenable: Should we send traps when authentication failures occur
  23. #   arguments: 1 | 2   (1 = yes, 2 = no)
  24.  
  25. authtrapenable  1
  26.  
  27.  
  28.  
  29. ###########################################################################
  30. # SECTION: Access Control Setup
  31. #
  32. #   This section defines who is allowed to talk to your running
  33. #   snmp agent.
  34.  
  35. # rocommunity: a SNMPv1/SNMPv2c read-only access community name
  36. #   arguments:  community [default|hostname|network/bits] [oid]
  37.  
  38. rocommunity  public
  39.  
  40. # rwcommunity: a SNMPv1/SNMPv2c read-write access community name
  41. #   arguments:  community [default|hostname|network/bits] [oid]
  42.  
  43. # rwcommunity  private
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. ###########################################################################
  51. # SECTION: System Information Setup
  52. #
  53. #   This section defines some of the information reported in
  54. #   the "system" mib group in the mibII tree.
  55.  
  56. # syslocation: The [typically physical] location of the system.
  57. #   Note that setting this value here means that when trying to
  58. #   perform an snmp SET operation to the sysLocation.0 variable will make
  59. #   the agent return the "notWritable" error code.  IE, including
  60. #   this token in the snmpd.conf file will disable write access to
  61. #   the variable.
  62. #   arguments:  location_string
  63.  
  64. syslocation  "Set this to the location"
  65.  
  66. # syscontact: The contact information for the administrator
  67. #   Note that setting this value here means that when trying to
  68. #   perform an snmp SET operation to the sysContact.0 variable will make
  69. #   the agent return the "notWritable" error code.  IE, including
  70. #   this token in the snmpd.conf file will disable write access to
  71. #   the variable.
  72. #   arguments:  contact_string
  73.  
  74. syscontact  whoever@contact.com
  75.  
  76. # sysservices: The proper value for the sysServices object.
  77. #   arguments:  sysservices_number
  78.  
  79. sysservices 76
  80.  
  81.  
  82.  
  83. ###########################################################################
  84. # SECTION: Monitor Various Aspects of the Running Host
  85. #
  86. #   The following check up on various aspects of a host.
  87.  
  88. # proc: Check for processes that should be running.
  89. #     proc NAME [MAX=0] [MIN=0]
  90. #  
  91. #     NAME:  the name of the process to check for.  It must match
  92. #            exactly (ie, http will not find httpd processes).
  93. #     MAX:   the maximum number allowed to be running.  Defaults to 0.
  94. #     MIN:   the minimum number to be running.  Defaults to 0.
  95. #  
  96. #   The results are reported in the prTable section of the UCD-SNMP-MIB tree
  97. #   Special Case:  When the min and max numbers are both 0, it assumes
  98. #   you want a max of infinity and a min of 1.
  99.  
  100. # proc    
  101.  
  102. # load: Check for unreasonable load average values.
  103. #   Watch the load average levels on the machine.
  104. #  
  105. #    load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
  106. #  
  107. #    1MAX:   If the 1 minute load average is above this limit at query
  108. #            time, the errorFlag will be set.
  109. #    5MAX:   Similar, but for 5 min average.
  110. #    15MAX:  Similar, but for 15 min average.
  111. #  
  112. #   The results are reported in the laTable section of the UCD-SNMP-MIB tree
  113.  
  114. load  5 5 5
  115.  
  116.  
  117.  
  118. ###########################################################################
  119. # SECTION: Agent Operating Mode
  120. #
  121. #   This section defines how the agent will operate when it
  122. #   is running.
  123.  
  124. # agentaddress: The IP address and port number that the agent will listen on.
  125. #   By default the agent listens to any and all traffic from any
  126. #   interface on the default SNMP port (161).  This allows you to
  127. #   specify which address, interface, transport type and port(s) that you
  128. #   want the agent to listen on.  Multiple definitions of this token
  129. #   are concatenated together (using ':'s).
  130. #   arguments: [transport:]port[@interface/address],...
  131.  
  132. #agentaddress  
  133.  
  134.  
  135.  
  136. #
  137. # Unknown directives read in from other files by snmpconf
  138. #
  139. com2sec paranoid  default         public
  140. group MyROSystem v1        paranoid
  141. group MyROSystem v2c       paranoid
  142. group MyROSystem usm       paranoid
  143. group MyROGroup v1         readonly
  144. group MyROGroup v2c        readonly
  145. group MyROGroup usm        readonly
  146. group MyRWGroup v1         readwrite
  147. group MyRWGroup v2c        readwrite
  148. group MyRWGroup usm        readwrite
  149. view all    included  .1                               80
  150. view system included  .iso.org.dod.internet.mgmt.mib-2.system
  151. access MyROSystem ""     any       noauth    exact  system none   none
  152. access MyROGroup ""      any       noauth    exact  all    none   none
  153. access MyRWGroup ""      any       noauth    exact  all    all    none
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top