Then I suggest some quality time with Google. Net-SNMP has a trap sending program, I believe, that reduces the work. You might also check CPAN to see if someone hasn't written a trap sending module that works entirely within Perl and perhaps a library. I know MRTG uses some Perl code that doesn't appear to depend on anything else for SNMP queries.
GLH
-----Original Message----- From: Juan Guzman [mailto:jrguzmanr at hotmail.com] Sent: Friday, June 09, 2006 9:33 AM To: hobbit at hswn.dk Subject: RE: [hobbit] sending snmp traps
I want hobbit to forward all alerts as snmp traps, but don't know much (if anything) about snmp, other than how to do some queries. I would get my hands dirty with perl, but I don't know enough about snmp.
From: "Hubbard, Greg L" <greg.hubbard at eds.com> Reply-To: hobbit at hswn.dk To: <hobbit at hswn.dk> Subject: RE: [hobbit] sending snmp traps Date: Fri, 9 Jun 2006 09:23:11 -0500
Juan, can your software monitor syslog? It would probably be much easier to use logger to send a message to your monitoring console than it will be to define your own traps. SNMP trap definition requires some knowledge of MIB's and OIDs and varbinds and PDU's and such.
Syslog is just text processing.GLH
-----Original Message----- From: Juan Guzman [mailto:jrguzmanr at hotmail.com] Sent: Friday, June 09, 2006 8:30 AM To: hobbit at hswn.dk Subject: Re: [hobbit] sending snmp traps
I agree, but I don't know the snmp trap format. Can somebody point me in the right direction of what a trap consists of?
thanks
From: henrik at hswn.dk (Henrik Stoerner) Reply-To: hobbit at hswn.dk To: hobbit at hswn.dk Subject: Re: [hobbit] sending snmp traps Date: Thu, 8 Jun 2006 22:18:12 +0200
On Thu, Jun 08, 2006 at 03:38:17PM -0400, Juan Guzman wrote:
Has anybody configured hobbit to send traps to a monitopring sofware,
e.g.
tivoli? I'm looking for hobbit to send a trap when something turns yellow or red.
Using the "SCRIPT" mechanism in hobbit-alerts.cfg lets you run a command to notify about an alert. It should be fairly simple to write
a
script that sends an SNMP trap from this.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk