RE: snmptrapd 101

2009-12-21 Thread Mike Ayers
 From: Seger, Mark [mailto:mark.se...@hp.com]
 Sent: Saturday, December 19, 2009 4:11 AM

 So does anyone have any idea why I can't receive local traps?

What address(es) is your snmptrapd listening on?  To receive traps to 
localhost you must have either 127.0.0.1 or 0.0.0.0 in the list.


HTH,

Mike

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmptrapd 101

2009-12-19 Thread Seger, Mark
I finally found my problem and I don't know if this is a bug, a feature or some 
sort of configuration error on my part.  I decided to try running tcpdump when 
doing the snmptrap command and sure enough, nothing!  For complete grins, to 
make sure tcpdump was working I went to a different system and did a ping.  
Worked fine so while there I decided to try snmptrap and lo and behold, I 
received it!

In other works remote traps are being received but local ones aren't.  I gotta 
believe snmptrapd can receive local traps especially since all the examples in 
the FAQ show sending to 'localhost'.

So does anyone have any idea why I can't receive local traps?

-mark

-Original Message-
From: Seger, Mark
Sent: Friday, December 18, 2009 3:48 PM
To: Mike Ayers; net-snmp-users@lists.sourceforge.net
Subject: RE: snmptrapd 101

  But you only authorized execution, not logging.  Change execute
to log above and you should see the notifications.

Nope - changed it to 'log' and I still don’t anything reported by the
trap daemon.  I think the purpose of execute was there to allow it to
run a script from the traphandle directive, right?  It wasn't doing that
either.  Are there other switched worth trying with snmptrapd?

So just to be clear, at the 4 commands I'm sending it correct?  As I
said I just cut/pasted these out of the faq and want to make sure I'm
sending something legitmate:

snmptrap -v 1 -c public localhost   0 0  
snmptrap -v 1 -c public localhost   6 99 
snmptrap -v 2c -c public localhost  UCD-SNMP-MIB::ucdStart
snmptrap -v 2c -c public localhost  .1.3.6.1.4.1.2021.251.1

I may not have mentioned this but I'm running 5.4 of net-snmp.  I also
tried running it with -D and it prints a ton of stuff.  If I then run
one of the snmptrap commands it doesn't do a thing so clearly nothing is
waking it up, if that helps.  Also if I run snmptrapd with -d, it
doesn't report anything when I send traps.

-mark


  HTH,

Mike


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and
easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: snmptrapd 101

2009-12-19 Thread Bart Van Assche
On Sat, Dec 19, 2009 at 1:11 PM, Seger, Mark mark.se...@hp.com wrote:

 I finally found my problem and I don't know if this is a bug, a feature or
 some sort of configuration error on my part.  I decided to try running
 tcpdump when doing the snmptrap command and sure enough, nothing!  For
 complete grins, to make sure tcpdump was working I went to a different
 system and did a ping.  Worked fine so while there I decided to try snmptrap
 and lo and behold, I received it!

 In other works remote traps are being received but local ones aren't.  I
 gotta believe snmptrapd can receive local traps especially since all the
 examples in the FAQ show sending to 'localhost'.

 So does anyone have any idea why I can't receive local traps?


Which interfaces did you make tcpdump listen to ? Have you tried tcpdump -i
any, which also captures traffic sent over the localhost interface ?

Bart.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmptrapd 101

2009-12-18 Thread Mike Ayers
 From: Seger, Mark [mailto:mark.se...@hp.com]
 Sent: Friday, December 18, 2009 12:12 PM

 Starting with the basics, I have /etc/snmp/snmptrapd.conf with one
 entry in it:
 
 authCommunity execute public
 
 if I comment it out, snmptrapd complains so it’s clearly doing
 something with this.
 
 Next I’m running snmptrapd –f –LO, which according to the documentation
 should report traps directly on the terminal

But you only authorized execution, not logging.  Change execute to 
log above and you should see the notifications.


HTH,

Mike

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: snmptrapd 101

2009-12-18 Thread Seger, Mark
   But you only authorized execution, not logging.  Change execute
to log above and you should see the notifications.

Nope - changed it to 'log' and I still don’t anything reported by the trap 
daemon.  I think the purpose of execute was there to allow it to run a script 
from the traphandle directive, right?  It wasn't doing that either.  Are there 
other switched worth trying with snmptrapd?

So just to be clear, at the 4 commands I'm sending it correct?  As I said I 
just cut/pasted these out of the faq and want to make sure I'm sending 
something legitmate:

snmptrap -v 1 -c public localhost   0 0  
snmptrap -v 1 -c public localhost   6 99 
snmptrap -v 2c -c public localhost  UCD-SNMP-MIB::ucdStart
snmptrap -v 2c -c public localhost  .1.3.6.1.4.1.2021.251.1

I may not have mentioned this but I'm running 5.4 of net-snmp.  I also tried 
running it with -D and it prints a ton of stuff.  If I then run one of the 
snmptrap commands it doesn't do a thing so clearly nothing is waking it up, if 
that helps.  Also if I run snmptrapd with -d, it doesn't report anything when I 
send traps.

-mark


   HTH,

Mike

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users