SNMP

Installing SNMPD
yum -y install net-snmp /sbin/chkconfig snmpd on /sbin/service snmpd start

/etc/snmp/snmpd.conf
# # # # rocommunity public # # # proc httpd 10 3 proc vsftpd 2 # # # disk / # # # load 12 12 12 load 5 5 5 # syslocation "Saint Paul, MN, USA" syscontact "Matt Rude matt@mattrude.com" sysservices 76
 * 1) snmpd.conf
 * 1)   - created by the snmpconf configuration program
 * 1) SECTION: Access Control Setup
 * 1) SECTION: Access Control Setup
 * 1)   This section defines who is allowed to talk to your running
 * 2)   snmp agent.
 * 1) rocommunity: a SNMPv1/SNMPv2c read-only access community name
 * 2)   arguments:  community [default|hostname|network/bits] [oid]
 * 1) SECTION: Monitor Various Aspects of the Running Host
 * 1) SECTION: Monitor Various Aspects of the Running Host
 * 1)   The following check up on various aspects of a host.
 * 1) proc: Check for processes that should be running.
 * 2)     proc NAME [MAX=0] [MIN=0]
 * 1)     NAME:  the name of the process to check for.  It must match
 * 2)            exactly (ie, http will not find httpd processes).
 * 3)     MAX:   the maximum number allowed to be running.  Defaults to 0.
 * 4)     MIN:   the minimum number to be running.  Defaults to 0.
 * 1)   The results are reported in the prTable section of the UCD-SNMP-MIB tree
 * 2)   Special Case:  When the min and max numbers are both 0, it assumes
 * 3)   you want a max of infinity and a min of 1.
 * 1) disk: Check for disk space usage of a partition.
 * 2)   The agent can check the amount of available disk space, and make
 * 3)   sure it is above a set limit.
 * 1)    disk PATH [MIN=100000]
 * 1)    PATH:  mount path to the disk in question.
 * 2)    MIN:   Disks with space below this value will have the Mib's errorFlag set.
 * 3)           Can be a raw byte value or a percentage followed by the %
 * 4)           symbol.  Default value = 100000.
 * 1)   The results are reported in the dskTable section of the UCD-SNMP-MIB tree
 * 1) load: Check for unreasonable load average values.
 * 2)   Watch the load average levels on the machine.
 * 1)    load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
 * 1)    1MAX:   If the 1 minute load average is above this limit at query
 * 2)            time, the errorFlag will be set.
 * 3)    5MAX:   Similar, but for 5 min average.
 * 4)    15MAX:  Similar, but for 15 min average.
 * 1)   The results are reported in the laTable section of the UCD-SNMP-MIB tree
 * 1) SECTION: System Information Setup
 * 1) SECTION: System Information Setup
 * 1)   This section defines some of the information reported in
 * 2)   the "system" mib group in the mibII tree.
 * 1) syslocation: The [typically physical] location of the system.
 * 2)   Note that setting this value here means that when trying to
 * 3)   perform an snmp SET operation to the sysLocation.0 variable will make
 * 4)   the agent return the "notWritable" error code.  IE, including
 * 5)   this token in the snmpd.conf file will disable write access to
 * 6)   the variable.
 * 7)   arguments:  location_string
 * 1) syscontact: The contact information for the administrator
 * 2)   Note that setting this value here means that when trying to
 * 3)   perform an snmp SET operation to the sysContact.0 variable will make
 * 4)   the agent return the "notWritable" error code.  IE, including
 * 5)   this token in the snmpd.conf file will disable write access to
 * 6)   the variable.
 * 7)   arguments:  contact_string
 * 1) sysservices: The proper value for the sysServices object.
 * 2)   arguments:  sysservices_number