Re: Two dynamic ports for sending traps

2011-03-27 Thread Daniel Ng
> But the same options were being used in an older version. I wasn't getting > duplicate traps with the same options used. > Has the behaviour changed with NET-SNMP version 5.4.2.1. Shouldn't it read > the config file once if it knows the user is provides it from the default > location? On v5.6, I

Re: Two dynamic ports for sending traps

2011-03-26 Thread akshata s harkantra
Thanks Magnus. Your suggestion seems to have worked. I removed the -c from the command line and I get only one dynamic port. But the same options were being used in an older version. I wasn't getting duplicate traps with the same options used. Has the behaviour changed with NET-SNMP version 5.4.2.

Re: Two dynamic ports for sending traps

2011-03-26 Thread Magnus Fromreide
On Sat, 2011-03-26 at 10:58 -0700, akshata s harkantra wrote: > Hi Dave, > > Thanks for your response. I am startring snmpd with the following > options > > /usr/sbin/snmpd -c /etc/snmp/snmpd.conf -p /tmpfs/snmpd.pid -f -Le > -Dread_config > > Also, I have only a single entry of trap2sink line

Re: Two dynamic ports for sending traps

2011-03-26 Thread akshata s harkantra
Hi Dave, Thanks for your response. I am startring snmpd with the following options /usr/sbin/snmpd -c /etc/snmp/snmpd.conf -p /tmpfs/snmpd.pid -f -Le -Dread_config Also, I have only a single entry of trap2sink line in the conf file. I am sure that even if I start snmpd only once I get two entr

Re: Two dynamic ports for sending traps

2011-03-26 Thread Dave Shield
On 26 March 2011 06:00, akshata s harkantra wrote: > I am facing a strange behaviour with snmp running on my linux box. I see > that two dynamic ports are opened by the daemon > I have only single trap2sink entry in my configuration file snmpd.conf. > Not sure why I am seeing two ports. Due to t

Two dynamic ports for sending traps

2011-03-25 Thread akshata s harkantra
:* 5102/snmpd udp0 0 0.0.0.0:58027 0.0.0.0:* 5102/snmpd udp0 0 0.0.0.0:46072 0.0.0.0:* 5102/snmpd I have only single trap2sink entry in my configuration file snmpd.conf. I thought we open only one dynamic port for sending traps

Re: Memory leaks when sending traps

2010-06-17 Thread Bart Van Assche
On Thu, Jun 17, 2010 at 12:29 AM, Sylvain Dery wrote: > Silly me! The snmpd.conf file was not configured properly for the > rwcommunity. > > So, the result of the snmpset -v2c -cprivate localhost > enterprises.2021.254.8.0 i 0 command is: > > snmpset -v2c -cprivate localhost enterprises.2021.254

Re: Memory leaks when sending traps

2010-06-16 Thread Sylvain Dery
d that does generate traps, and a memory leak! Sylvain From: Sylvain Dery To: Bart Van Assche Cc: [email protected] Sent: Wed, June 16, 2010 5:19:18 PM Subject: Re: Memory leaks when sending traps The command returns: snmpset -v2c -cp

Re: Memory leaks when sending traps

2010-06-16 Thread Sylvain Dery
From: Robert Story To: Sylvain Dery Cc: [email protected] Sent: Fri, June 11, 2010 11:26:45 AM Subject: Re: Memory leaks when sending traps On Thu, 10 Jun 2010 10:56:27 -0700 (PDT) Sylvain wrote: SD> There is a memory leak of ~24 k in snmpd everytime I send snmp-v2 traps.

Re: Memory leaks when sending traps

2010-06-16 Thread Sylvain Dery
art as a master agent (therefore I don't need the snmpd process anymore), the leak is gone... Sylvain From: Bart Van Assche To: Sylvain Dery Cc: [email protected] Sent: Fri, June 11, 2010 2:33:26 AM Subject: Re: Memory leaks when se

Re: Memory leaks when sending traps

2010-06-11 Thread Robert Story
On Thu, 10 Jun 2010 10:56:27 -0700 (PDT) Sylvain wrote: SD> There is a memory leak of ~24 k in snmpd everytime I send snmp-v2 traps. SD> I'm using the 5.5 windows binary (net-snmp-5.5.0-2.x64.exe ) If that binary was configured with notification logging, then it could be that it's not leaking, but

Re: Memory leaks when sending traps

2010-06-10 Thread Bart Van Assche
m:* Bart Van Assche > *To:* Sylvain Dery > *Cc:* [email protected] > *Sent:* Thu, June 10, 2010 2:12:15 PM > *Subject:* Re: Memory leaks when sending traps > > On Thu, Jun 10, 2010 at 7:56 PM, Sylvain Dery wrote: > >> >> There is a memory l

Re: Memory leaks when sending traps

2010-06-10 Thread Sylvain Dery
e.net Sent: Thu, June 10, 2010 2:12:15 PM Subject: Re: Memory leaks when sending traps On Thu, Jun 10, 2010 at 7:56 PM, Sylvain Dery wrote:   >There is a memory leak of ~24 k in snmpd everytime I send snmp-v2 traps.  I'm >using the 5.5 windows binary (net-snmp-5.5.0-2.x64.exe ) as

Re: Memory leaks when sending traps

2010-06-10 Thread Bart Van Assche
On Thu, Jun 10, 2010 at 7:56 PM, Sylvain Dery wrote: > > There is a memory leak of ~24 k in snmpd everytime I send snmp-v2 traps. > I'm using the 5.5 windows binary > (net-snmp-5.5.0-2.x64.exe) > a

Memory leaks when sending traps

2010-06-10 Thread Sylvain Dery
Hi, There is a memory leak of ~24 k in snmpd everytime I send snmp-v2 traps.  I'm using the 5.5 windows binary (net-snmp-5.5.0-2.x64.exe ) as download from http://sourceforge.net/projects/net-snmp/files/net-snmp binaries/5.5-binaries/ on Windows-XP.  Same leaks occurs with snmp-v1 and informs.

clientaddress ignored in when sending traps

2010-01-11 Thread Stephen Hemminger
When snmpd is configured to send traps, it is supposed to use the clientaddr from snmp.conf.. clientaddr [:] specifies the source address to be used by command-line applica‐ tions when sending SNMP requests. See snmpcmd(1) for more infor‐ mation about

Issue sending traps (Is it Master-subAgent Configuration usingAgentx ?? )

2009-09-19 Thread gauravmeh2004
Hello, We are using Using net-snmp release 5.4.1 Facing issue with sending traps at high rate. As sending traps at high rate snmpv2_trap() api hangs somewhere , i am doubting that it is somewhere when sending data to master agent on port 706 on tcp. I am running master agent using following

Fw: Issue with sending Traps as fast rate

2009-09-13 Thread gauravmeh2004
this. Thanks and Regards Gaurav - Original Message - From: [email protected] To: D T Shield , dave shield Cc: [email protected] Sent: Wed, 9 Sep 2009 11:12:25 +0530 (IST) Subject: Issue with sending Traps as fast rate Hello, We are using netsnmp release

Issue with sending Traps as fast rate

2009-09-08 Thread gauravmeh2004
Hello, We are using netsnmp release 5.4.1. We are facing issue with trap sending We are sending trap at a fast rate 1000 Alarms/sec. The Agent hangs. Adding some debug statement , we found that the code hangs when we give call to send_v2trap(var_list); At our trap receiver we received 500 Alar

Re: Sending Traps for different destinations at the same time

2009-02-06 Thread Wes Hardaker
> On Fri, 30 Jan 2009 13:52:01 -, "Angela Lazaro" > said: AL> I'm using net-snmp 5.3.2 and I'm trying to find a way to send traps to AL> different destinations at the same time. So far I've tried to defined AL> different trapsess in the snmpd.conf file (the configuration file for AL

RE: Sending Traps for different destinations at the same time

2009-01-31 Thread Angela Lazaro
roblem. Thanks again, Ângela -Original Message- From: [email protected] on behalf of Dave Shield Sent: Sat 1/31/2009 10:50 AM To: Angela Lazaro Cc: [email protected]; [email protected] Subject: Re: Sending Traps for different destinations a

Re: Sending Traps for different destinations at the same time

2009-01-31 Thread Dave Shield
2009/1/30 Angela Lazaro : > ... if I want to use only SNMPv3, how can I send a multi destination trap? Use two "trapsess" directives. Each such line (be it trapsess, trapsink, etc) will configure a separate trap destination. If you have 28 such lines in your config file, you will end up sending

RE: Sending Traps for different destinations at the same time

2009-01-30 Thread Angela Lazaro
: sexta-feira, 30 de Janeiro de 2009 14:05 To: [email protected] Subject: Re: Sending Traps for different destinations at the same time >Hi everyone! > >I'm using net-snmp 5.3.2 and I'm trying to find a way to send traps to >different destinations at the s

Sending Traps for different destinations at the same time

2009-01-30 Thread Angela Lazaro
Hi everyone! I'm using net-snmp 5.3.2 and I'm trying to find a way to send traps to different destinations at the same time. So far I've tried to defined different trapsess in the snmpd.conf file (the configuration file for the agent) or pass multi destinations in the same trapsess in the dest

Re: Sending Traps..

2007-09-06 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 05/09

Re: Sending Traps..

2007-09-05 Thread Dave Shield
On 04/09/07, Jelena Savic <[EMAIL PROTECTED]> wrote: > How do i notify my agent that the trap needs to be sent to the manager? That's an ambiguous question. Do you mean How do I notify my agent *where* the trap should be sent? or How do I notify my agent *when* the trap should be sent?

Sending Traps..

2007-09-05 Thread Jelena Savic
How do i notify my agent that the trap needs to be sent to the manager? What is the flow of events that should happen from the time a trap occurs to the time a manager receives a trap? Thanks... - This SF.net email is spons

Sending traps instead of informs

2007-06-17 Thread Ruchi Lohani
Hi, I have to send traps rather than inform in my case. I do not want to handle the case of ack's from inform. The agent will send the trap using the its engine id rather than the remote server's engine ID. I need to create user with this agent's engine id on the remote server (trap receiver). M

Subagent hangs while sending traps

2007-04-06 Thread bhushan
Hello Friends I have written code using net-snmp 5.4 API for subagent which will send trap to destination using agentx support in net-snmp. However if i configures some unresolved/unreachable host, the snmp subagent hangs in 'send' system call. I am using TCP commn protocol between subagent and sn

Re: problem sending traps from c code

2007-03-13 Thread Dave Shield
On 09/03/07, maciej_golas <[EMAIL PROTECTED]> wrote: > I want to write a subagent that will sent a trap as a response to SET > command. There is an example of exactly this behaviour in the file 'agent/mibgroup/examples/example.c' See the blocks entitled "EXAMPLETRIGGERTRAP" and "EXAMPLETRIGGE

problem sending traps from c code

2007-03-09 Thread maciej_golas
I'm just a beginer with net-snmp. I want to write a subagent that will sent a trap as a response to SET command. I follow the tutorial from www.net-snmp.org. My subagent works: I can SET/GET data, but I don't know how to catch SETs so I could sent a trap. Could you help me with some example that sh

Re: sending traps

2006-08-22 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 22/08

Re: sending traps

2006-08-22 Thread Dave Shield
On 22/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How to send snmp traps using net-snmp Please read the FAQ entry: How do I send traps and notifications? Dave - Using Tomcat but need to do more? Need to support

sending traps

2006-08-22 Thread c-jshailesh
How to send snmp traps using net-snmp - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSpher

Sending traps

2006-05-10 Thread Wesley Naves de Faria
Hi coders,     I created a mib that check an service of my server and set the flag of the services as OK(0), Warning(1), Critical(2) NoResponse(3).   So, i need that when change the state of flag the snmp send a trap. I tried to use the monitor in snmpd.conf, but if i put lines ( flag == 0 

Re: sending TRAPS /INFORMS directly from within a Subagent(not the Master)

2005-06-17 Thread Dave Shield
On Thu, 2005-06-16 at 20:23, Ranganai Chaparadza wrote: > How can I send a Trap or an Inform message from within > my SubAgent. The thing is, I want to decide within my > SubAgent, where my Inform message should be sent. You'll need to open a session to the desired destination, construct and popul

sending TRAPS /INFORMS directly from within a Subagent(not the Master)

2005-06-16 Thread Ranganai Chaparadza
Hi Folks, How can I send a Trap or an Inform message from within my SubAgent. The thing is, I want to decide within my SubAgent, where my Inform message should be sent. I do not want the message to be sent to the known managers in the snmpd.conf, in which case the Inform will be sent by the Master