SNMP Traps from ProCurve Switches
Carl Friend
Carl.Friend at mathworks.com
Wed Apr 30 19:58:16 CEST 2008
Allan Clark writes:
> [...] I wanted to connect directly rather than layer a lot of
> interposing scripts (which are often difficult to repair). I
> was trying to force snmptrapd to "log" to the Nagios command-channel,
> but snmptrapd seems to use different formats when logging to stdout
> compared to logging to a file.
>
> Anyone else with better luck?
I wrote a Perl script that executes from NET-SNMP's "snmptrapd"
program (or can take stuff from <STDIN> (think e-mail)), does some
behind-the-scenes "magic" with a MySQL database backend (think
suppressing duplicate traps, and the ability to route traps to
Nagios or e-mail), and ultimately sends Nagios-formtted stuff via
NSCA to Nagios (or to humans via e-mail).
If anybody wants a copy, and the database schemas, just ask. It
is a bit of a heavyweight, but it works in my environment.
I also did a bit of recoding to NSCA/NSCD to allow that facility
to enter comments into Nagios, either for services or for hosts. I
contacted Mr. Galstad to see if he was interested in the tweaks, but
was told that there were going to be better ways of doing what I did
in the future. I find it useful to jam stuff like port up/down and
configuration events into comments rather than fiddling with a service
and sending notifications.
+-----------------------------------------+----------------------------+
| Carl Richard Friend (UNIX Sysadmin) | Natick, Massachusetts, USA |
| Minicomputer Collector / Enthusiast | 01760-2098 |
| mailto:carl_friend at mathworks.com +----------------------------+
| http://users.rcn.com/crfriend/museum | ICBM: +42:18:00 -71:21:03 |
+-----------------------------------------+----------------------------+
-------------------------------------------------------------------------
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
_______________________________________________
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