Snmpconf

From Net-SNMP Wiki
Revision as of 07:58, 4 April 2008 by Bhwon (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. syslocation bhwon.pyroworks.co.kr No.1
  2. syscontact Root <bhwon@pyroworks.co.kr> (configure /etc/snmp/snmp.local.conf)
  1. Example output of snmpwalk:
  2.  % snmpwalk -v 1 localhost -c public system
  3. system.sysDescr.0 = "SunOS name sun4c"
  4. system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.sunos4
  5. system.sysUpTime.0 = Timeticks: (595637548) 68 days, 22:32:55
  6. system.sysContact.0 = "Me <me@somewhere.org>"
  7. system.sysName.0 = "name"
  8. system.sysLocation.0 = "Right here, right now."
  9. system.sysServices.0 = 72


  1. -----------------------------------------------------------------------------


  1. Process checks.
  2. The following are examples of how to use the agent to check for
  3. processes running on the host. The syntax looks something like:
  4. proc NAME [MAX=0] [MIN=0]
  5. NAME: the name of the process to check for. It must match
  6. exactly (ie, http will not find httpd processes).
  7. MAX: the maximum number allowed to be running. Defaults to 0.
  8. MIN: the minimum number to be running. Defaults to 0.
  1. Examples (commented out by default):
  1. Make sure mountd is running
  2. proc mountd
  1. Make sure there are no more than 4 ntalkds running, but 0 is ok too.
  2. proc ntalkd 4
  1. Make sure at least one sendmail, but less than or equal to 10 are running.
  2. proc sendmail 10 1
  1. A snmpwalk of the process mib tree would look something like this:
  2.  % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.2
  3. enterprises.ucdavis.procTable.prEntry.prIndex.1 = 1
  4. enterprises.ucdavis.procTable.prEntry.prIndex.2 = 2
  5. enterprises.ucdavis.procTable.prEntry.prIndex.3 = 3
  6. enterprises.ucdavis.procTable.prEntry.prNames.1 = "mountd"
  7. enterprises.ucdavis.procTable.prEntry.prNames.2 = "ntalkd"
  8. enterprises.ucdavis.procTable.prEntry.prNames.3 = "sendmail"
  9. enterprises.ucdavis.procTable.prEntry.prMin.1 = 0
  10. enterprises.ucdavis.procTable.prEntry.prMin.2 = 0
  11. enterprises.ucdavis.procTable.prEntry.prMin.3 = 1
  12. enterprises.ucdavis.procTable.prEntry.prMax.1 = 0
  13. enterprises.ucdavis.procTable.prEntry.prMax.2 = 4
  14. enterprises.ucdavis.procTable.prEntry.prMax.3 = 10
  15. enterprises.ucdavis.procTable.prEntry.prCount.1 = 0
  16. enterprises.ucdavis.procTable.prEntry.prCount.2 = 0
  17. enterprises.ucdavis.procTable.prEntry.prCount.3 = 1