nagios and snmptrapd - How to??
Sergio Morilla
SMorilla at tipoiti.com
Wed Feb 19 21:06:16 CET 2003
> Hi,
>
> I´m currently using Nagios 1.0 with nagios-plugins-1.3.0-beta2.
> So far I have managed to get Nagios running and it performs OK!!
>
> I have two Vanguard 6425 routers linking our central office and our
> manufacturing plant.
>
> I´ve get the routers to send the traps to the nagios server, and they
> are being logged.
>
> What I get on my log file is:
> Feb 17 02:57:32 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87016) Uptime: 5 days, 18:18:10.05, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK DOWN"
> Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87015) Uptime: 5 days, 18:19:09.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1 - LINK UP"
> Feb 17 02:58:31 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (87012) Uptime: 5 days, 18:19:10.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - FRAME SEGMENTER LINK UP"
> Feb 17 02:58:39 www snmptrapd[573]: 192.168.1.254: Enterprise Specific Trap (43007) Uptime: 5 days, 18:19:17.60, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "FRI-1s1 - LINK UP"
>
> This seems OK, but...along with that I get this also
> Feb 19 16:33:03 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:50:06.15, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:01:02:67:4A:08"
> Feb 19 16:35:56 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:52:59.20, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E"
> Feb 19 16:35:58 www snmptrapd[560]: 192.168.1.254: Enterprise Specific Trap (154001) Uptime: 22:53:00.75, SNMPv2-SMI::enterprises.449.2.1.1.1.7 = STRING: "IPX.8 SAP bad typ 11 frm 501/00:02:A5:D8:C2:6E"
>
> Q1) How do I identify this traps on the event-handler?? snmptrapd[573] and snmptrapd[560] seem to be different types
> of traps. How is this sent to the handler??
>
> My snmptrapd.conf file looks like this
> traphandle SNMPv2-SMI::enterprises.449.2.1.1.1.7.0 /usr/local/nagios/libexec/eventhandlers/vanguard-handler
>
> and my /usr/local/nagios/libexec/eventhandlers/vanguard-handler
>
> #!/bin/sh
>
> /bin/echo -e "$1\n" > test.run
>
> exit 0
>
> As long as I understand the documentation this should get my vanguard-handler run on every trap the
> nagios server receives.
>
> q2) Is there anything else to be set up??
> I will run
> # Submit passive check result to monitoring host
> /usr/local/nagios/libexec/eventhandlers/submit_check_result
> When I get this "simple???" setup running!!!
> Any thoughts??!!
>
> Thanks
>
> Sergio D. Morilla
>
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
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