Trying to generate traps...

Jean-Sebastien Morisset <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi everyone,

I'm trying to configure Net-SNMP to send traps when a process is
missing, disk space is low, etc. According to the examples page (
http://net-snmp.sourceforge.net/docs/man/snmpd.examples.html ), the
following should send a trap when the sleep process is missing. My
problem is that it doesn't. :-)

proc  sleep 1 1
createUser    _internal MD5 "the first sign of madness"
iquerySecName _internal
rouser        _internal
defaultMonitors         yes
linkUpDownNotifications yes
authtrapenable  1
trapcommunity   snmp-trap
trap2sink  snmp1.dev.me.org

BTW, how fast should Net-SNMP detect the missing process? Should I use
something like this instead?

proc  sleep 1 1
createUser    _internal MD5 "the first sign of madness"
iquerySecName _internal
rouser        _internal
linkUpDownNotifications yes
authtrapenable  1
trapcommunity   snmp-trap
trap2sink  snmp1.dev.me.org
monitor -r 60 -o prNames      -o prErrMessage  "procTable" prErrorFlag   != 0
monitor -r 60 -o memErrorName -o memSwapErrorMsg "memory"  memSwapError  != 0
monitor -r 60 -o extNames     -o extOutput     "extTable"  extResult     != 0
monitor -r 60 -o dskPath      -o dskErrorMsg   "dskTable"  dskErrorFlag  != 0
monitor -r 60 -o laNames      -o laErrMessage  "laTable"   laErrorFlag   != 0
monitor -r 60 -o fileName     -o fileErrorMsg  "fileTable" fileErrorFlag != 0

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[email protected]>
Personal Home Page <http://jsmoriss.mvlan.net/>
Underwater and Travel Photographs <http://www.mvpix.com/>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.