########################################################################### # # Copyright (c) 2003 Sun Microsystems, Inc. All rights reserved. # * # * U.S. Government Rights - Commercial software. Government users are subject # * to the Sun Microsystems, Inc. standard license agreement and applicable # * provisions of the FAR and its supplements. # # Use is subject to license terms. # # This distribution may include materials developed by third parties. Sun, # Sun Microsystems, the Sun logo and Solaris are trademarks or registered # trademarks of Sun Microsystems, Inc. in the U.S. and other countries. # # ########################################################################### # # snmpd.conf # # - created by the snmpconf configuration program # ########################################################################### ########################################################################### # SECTION: Admins who want to disable the snmpd daemon from # starting at boot time. # Change DISABLE=NO to DISABLE=YES # DO NOT DELETE # DO NOT UNCOMMENT #DISABLE=NO # # end ADMIN # ########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity public # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity private localhost .1.3.6.1.4.1.42.2.15 # We need to set up a user for the monitor line below agentSecName sysadm rouser sysadm ########################################################################### # SECTION: Extending the Agent # # You can extend the snmp agent to have it return information # that you yourself define. # dlmod: dynamically extend the agent using a shared-object # arguments: module-name module-path dlmod seaProxy /usr/sfw/lib/sparcv9/libseaProxy.so dlmod seaExtensions /usr/sfw/lib/sparcv9/libseaExtensions.so # Below is the module for the Fault Manager Daemon dlmod sunFM /usr/lib/fm/sparcv9/libfmd_snmp.so.1 ########################################################################### # SECTION: Monitor Various Aspects of the Running Host # # The following check up on various aspects of a host. # disk: Check for disk space usage of a partition. # The agent can check the amount of available disk space, and make # sure it is above a set limit. # # disk PATH [MIN=100000] # # PATH: mount path to the disk in question. # MIN: Disks with space below this value will have the Mib's errorFlag set. # Can be a raw byte value or a percentage followed by the % # symbol. Default value = 100000. # # The results are reported in the dskTable section of the UCD-SNMP-MIB tree disk / 100000 # load: Check for unreasonable load average values. # Watch the load average levels on the machine. # # load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0] # # 1MAX: If the 1 minute load average is above this limit at query # time, the errorFlag will be set. # 5MAX: Similar, but for 5 min average. # 15MAX: Similar, but for 15 min average. # # The results are reported in the laTable section of the UCD-SNMP-MIB tree load 8 5 3 ########################################################################### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation "Someplace, Somewhere" # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact SysAdm@company.com # sysservices: The proper value for the sysServices object. # arguments: sysservices_number sysservices 72 ########################################################################### # SECTION: Trap Destinations # # Here we define who the agent will send traps to. # trapcommunity: Default trap sink community to use # arguments: community-string trapcommunity solaris-traps # trapsink: A SNMPv1 trap receiver # arguments: host [community] [portnum] trapsink 192.168.0.2 solaris-traps # trap2sink: A SNMPv2c trap receiver # arguments: host [community] [portnum] trap2sink 192.168.0.2 solaris-traps # authtrapenable: Should we send traps when authentication failures occur # arguments: 1 | 2 (1 = yes, 2 = no) authtrapenable 2 # Testing monitoring # Monitor process memory and send a trap if it exceeds 10 MB monitor -o sysUpTime.0 -o hrSWRunName "high process memory" hrSWRunPerfMem > 10000 # defaultMonitors yes