SNMP Traps from ProCurve Switches

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Apr 30 03:02:10 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29/04/08 07:27 PM, Allan Clark wrote:
> (pulled cc;)

Please keep the mailing list in - Is can be useful for others.

> Are MIBs so new or unused that (like LDAP) there's not enough of a
> user-base to warrant Nagios understanding them?

Nagios has absolutely no knowledge of MIBs - basically all it know about
is hosts, services and their results... The problem you'll have is to
map a specific trap (or set of traps) to a Nagios service and alert
level with a meaningful message.

What's nice with SNMPTT is that it can parse MIBs and extract traps and
put everything in a SNMPTT config file ready for logging. You'll see the
traps, description and variables. All you have to do then is add an EXEC
line for the traps you want to send the result to Nagios, and set the
alert level and message you want (using the variables provided).

I attached a sample config file. This is basically a convert of IF-MIB
with two traps in it, linkUp and linkDown (I'm not sure it I trimmed it
of not...). What I added is the EXEC lines (and possibly modified the
FORMAT lines). Everything else is from snmpttconvertmib.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIF8US6dZ+Kt5BchYRAmCUAJ4/FcqrH2rc16l5li/TFGhJtC4QugCg8fv9
Wdc4Tcyxw3RtVJ3Kl7Fh7Yg=
=92w3
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: IF-MIB.conf
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080429/ebeb34d5/attachment.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list