Nagios and snmptrapd integration

Sand Philipp Philipp.Sand at sycor.de
Fri Oct 29 13:14:34 CEST 2004


Maybe you should also use the snmp trap translator.
In snmptrapd, i just configured the default traphandle, and my snmptt.conf looks like this:
EVENT test .1.3.6.1.4.1.311.* "Status Events" CRITICAL
FORMAT Eventlogmeldung: $1
EXEC /usr/local/nagios/libexec/submit_check_result $r eventlog WARNING "$1"
SDESC
Alle Events die von Microsoft kommen an Nagios weiterleiten
EDESC

EVENT nsr .1.3.6.1.4.1.160.* "NSR Events" CRITICAL
FORMAT Networker: $1
EXEC /usr/local/nagios/libexec/submit_check_result $r networker WARNING "$1"

EVENT fastt .1.3.6.1.4.1.1123.1.205.* "FAStT Events" CRITICAL
FORMAT FAStT: $*
EXEC /usr/local/nagios/libexec/submit_check_result hostname.hostdomain FAStT CRITICAL "$*"
EDESC

But you should have a look at the snmptt homepage for more information.

Regards,
Philipp


> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of Raphaël 'SurcouF' Bordet
> Sent: Friday, October 29, 2004 12:32 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Nagios and snmptrapd integration
> 
> Hi,
> 
> 	I've follow Online Documentation about SNMPtrap 
> integration in nagios but, when HPOV is sending a test trap, 
> my snmptrapd recevied this message in log:
> 
> Oct 29 11:10:55 is1bin01 snmptrapd[16650]: 10.0.0.50: 
> Enterprise Specific Trap (2) Uptime: 127, 
> SNMPv2-SMI::enterprises.232.151.101.100.2
> = STRING: "SMAJ01JFK352V", SNMPv2-SMI::enterprises.232.151.101.100.3 =
> INTEGER: 2, SNMPv2-SMI::enterprises.232.151.101.100.6 = STRING:
> "Management Appliance", SNMPv2-SMI::enterprises.232.151.101.100.7 =
> STRING: "hp OpenView storage management appliance",
> SNMPv2-SMI::enterprises.232.151.101.100.8 = STRING:
> "http://SMAJ01JFK352V:2301/"
> 
> I've try to set snmptrapd to handle like this:
> 
> traphandle     SNMPv2-SMI::enterprises.232.151.101.100.2
> /usr/lib/nagios/plugins/eventhandlers/handle-san-snmptrap       2
> traphandle     SNMPv2-SMI::enterprises.232.151.101.100.7
> /usr/lib/nagios/plugins/eventhandlers/handle-san-snmptrap       7
> traphandle      .1.3.6.1.4.1.9.232.151.101.100.2
> /usr/lib/nagios/plugins/eventhandlers/handle-san-snmptrap       7
> traphandle     default
> /usr/lib/nagios/plugins/eventhandlers/handle-san-snmptrap 7
> 
> Only this last line work. I can get lines from snmptrapd into 
> handle-san-snmptrap script like this:
> 10.0.0.50
> 10.0.0.50
> SNMPv2-MIB::sysUpTime.0 127:4:54:09.69
> SNMPv2-MIB::snmpTrapOID.0 SNMPv2-SMI::enterprises.232.151.101.0.2
> SNMPv2-SMI::enterprises.232.151.101.100.2 "SMAJ01JFK352V"
> SNMPv2-SMI::enterprises.232.151.101.100.3 2
> SNMPv2-SMI::enterprises.232.151.101.100.6 "Management Appliance"
> SNMPv2-SMI::enterprises.232.151.101.100.7 "hp OpenView 
> storage management appliance"
> SNMPv2-SMI::enterprises.232.151.101.100.8 "http://SMAJ01JFK352V:2301/"
> SNMP-COMMUNITY-MIB::snmpTrapAddress.0 10.0.0.50 
> SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 "public"
> SNMPv2-MIB::snmpTrapEnterprise.0 SNMPv2-SMI::enterprises.232.151.101
> __END__
> 
> Why snmptrapd can't handle traps by theirs OIDs ?
> 
> Regards,
> 
> 
> -------------------------------------------------------
> This Newsletter Sponsored by: Macrovision For reliable Linux 
> application installations, use the industry's leading setup 
> authoring tool, InstallShield X. Learn more and evaluate 
> today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
> _______________________________________________
> 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
> 


************************************************

sycor plastics - die neue Branchenlösung für die Kunststoffindustrie

www.sycor-plastics.de

************************************************




Diese E-Mail ist vertraulich und kann darüber hinaus persönliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemäße Empfänger sind, löschen Sie bitte die E-Mail und deren Anhänge sofort und benachrichtigen Sie uns darüber. Die Firma sycor willigt in keine Verträge oder vertragliche Verpflichtungen ein oder übermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdrücklich in schriftlicher Form zwischen den Parteien vereinbart wurde.

This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form.



-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
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