Re: Trying to generate traps...
Jean-Sebastien Morisset <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Feb 24, 2006 at 09:12:28AM +0000, Dave Shield wrote:
> On Thu, 2006-02-23 at 16:26 -0500, Jean-Sebastien Morisset wrote:
>> 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. :-)
>
> What do you see if you run an snmpwalk on the UCD-SNMP-MIB::prTable?
> In particular, is the prErrorFlag value set or not?
Yup.
prIndex.7 = INTEGER: 7
prNames.7 = STRING: sleep
prMin.7 = INTEGER: 1
prMax.7 = INTEGER: 1
prCount.7 = INTEGER: 0
prErrorFlag.7 = INTEGER: 1
prErrMessage.7 = STRING: Too few sleep running (# = 0)
prErrFix.7 = INTEGER: 0
prErrFixCmd.7 = STRING:
> Which version of the agent are you using?
5.1.1 for Solaris 8 sparc -- specifically the binary package from
sunfreeware.
BTW, I'm running a sniffer to pickup any trafic to port 162, so I can be
sure if a trap is sent or not (without replying on another application).
When I restart snmpd, two traps are sent, and then silence. Here are the
trap details as reported by OpenNMS:
Agent Up with Possible Changes (coldStart Trap)
enterprise:.1.3.6.1.4.1.8072.3.2.3 (.1.3.6.1.4.1.8072.3.2.3)
args(1):.1.3.6.1.6.3.1.1.4.3.0=".1.3.6.1.4.1.8072.3.2.3"
Received unformatted enterprise event
(enterprise:.1.3.6.1.4.1.8072.4 generic:6 specific:2). 0 args:
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