net-snmp help
Neil Watson
tlug-neil-8agRmHhQ+n2CxnSzwYWP7Q at public.gmane.org
Thu Sep 13 17:54:34 UTC 2007
Try as I might cannot get net-snmp to send traps for any high loads or
disk space shortages. Started snmpd and then load the CPU for more than
15 minutes. I also, filled the /home partition to 100%. In both cases
tcpdump showed no snmp traffic other than a trap send when the agent was
started. Both load and disk traps were not generated. Why?
# Test snmp.conf file by Neil Watson
# Wed Aug 29 13:51:29 EDT 2007
syscontact nhwatson-hcDgGtZH8xNBDgjK7y7TUQ at public.gmane.org
##############################################################
# Authentication
# v3
rouser roperson priv
rwuser rwperson priv
createUser roperson MD5 ******** DES ************
createUser rwperson MD5 ******** DES ************
# v2
rocommunity *********
rwcommunity ********* 172.16.0.0
# traping
trapcommunity *********
# v2c traps
trap2sink 172.16.48.5
# Send a trap on failed authentication attempts
authtrapenable 1
##############################################################
# load average checks
# load [1MAX=DEFMAXLOADAVE] [5MAX=DEFMAXLOADAVE] [15MAX=DEFMAXLOADAVE]
#
# 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.
# MIB: .1.3.6.1.4.1.2021.10
# Check for loads:
load 1 2 2
##############################################################
# disk checks
#
# The agent can check the amount of available disk space, and make
# sure it is above a set limit.
# disk PATH [MIN=DEFDISKMINIMUMSPACE]
#
# PATH: mount path to the disk in question.
# MIN: Disks with space below this value will have the Mib's errorFlag
# set.
# Default value = DEFDISKMINIMUMSPACE.
# MIB: .1.3.6.1.4.1.2021.9
# Check the / partition and make sure it contains at least 10 megs.
disk / 10000
disk /var 10000
disk /home 10000
disk /opt 10000
##############################################################
# swap checks
# Check if swap falls below a minimum of available space (kb)
swap 1000
##############################################################
# Other traps
# monitor [OPTIONS] NAME EXPRESSION
--
Neil Watson | Debian Linux
System Administrator | Uptime 21 days
http://watson-wilson.ca
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list