On 24/08/06, Jonathan Shan <[EMAIL PROTECTED]> wrote:
> How can I make snmptrap more useful?

Well the first thing is to take a step back  (TM), and think about
what you are actually wanting to do.  SNMP is just a tool - and the
best tool in the world is no use unless you have a task to perform.

SNMP traps are designed to tell you "something interesting is happening".
What interesting things do you want to be told about?


>       A book I have says that I should write a script that monitors key
> processes and generate traps when any interesting events take place. What
> is this script? A loop that runs every five minutes snmpgetting oids?

That's one way of doing it, certainly.
If you've got an up-to-date version of the Net-SNMP agent, then you
could look at using the DisMan event MIB to do much the same thing
within the agent itself.  Have a look at the snmpd.conf(5) man page,
and the section headed "ACTIVE MONITORING".  In particular, the
"monitor" directive.

If you're particularly interested in specific running processes, then
you could set up suitable "proc" directives, and use the
"defaultMonitors" directive to send traps automatically.


> Also- If I don't have the private enterprise MIBs, does that mean I am
> limited to the generic traps?

No - you can receive and process arbitrary traps without the
corresponding MIB files.
It just means that you'll be working with numeric OIDs and values,
rather than the semi-meaningful names and enumerations.   All of the
same information will be available, you just might have to work a bit
harder to understand it.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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

Reply via email to