Fwd: sending traps and perl plugin

2019-10-10 Thread Александр Малюков
Good day! I use snmpd with perl plugin. Plugin code - http://paste.debian.net/1105734 snmpd config - http://paste.debian.net/1105733 snmpwalk works fine. But i try to add monitor (sending traps) feature. and add monitor section: monitor -S -I -r 20 toHot 1.3.6.1.4.1.9.2.1.1 > 15

Re: How to specify the source address for sending traps

2019-07-26 Thread Bart Van Assche
On 7/26/19 1:06 PM, David Moriconi (dmoricon) via Net-snmp-users wrote: Hi, I am using Net-SNMP 5.8 on CentOS 7 with AgentX enabled. My AgentX subagent is implemented using SNMP4J-AgentX.

How to specify the source address for sending traps

2019-07-26 Thread David Moriconi (dmoricon) via Net-snmp-users
Hi, I am using Net-SNMP 5.8 on CentOS 7 with AgentX enabled. My AgentX subagent is implemented using SNMP4J-AgentX. I want to tell Net-SNMP on which interface to send traps. I look at the SNMPD configuration manpage (http://www.net-snmp.org/docs/man/snmpd.conf.html) and don’t see anything like

Problem sending traps

2019-02-11 Thread Mostafa Kassem
_TRAP2, FALSE, SNMP_VERSION_3); return true; } However, we are getting this error: [SNMP 3] : snmpd: send_trap: USM unknown security name (no such user exists) What are we doing wrong? If we add this line to the snmpd.conf and not use the above-mentioned code, we have no problem send

How to configure sending traps

2015-04-20 Thread James McGuire
Hi there, I've been trying to configure net-snmp to send a trap when the disk utilisation on any mount point reaches a certain threshold, say 80% of total capacity. I've read the documentation here: https://access.redhat.com/documentation ... eving.html

Sending traps from subagent results either in deadlock(tcp recvQ issue) or SIGPIPE

2013-05-07 Thread Usha Kodali
I am running net-snmp 5.4.2.1 Have a subagent sending traps to the master snmpd daemon. After about (depending on the size of trap buffer) 200 or 500 traps, either the subagent and snmpd deadlock in sendto or subagent receives a SIGPIPE. Observations: 1. The core problem is that snmpd

Re: Sending traps using Perl

2011-10-14 Thread Ali . Bruce
I can send SNMPv2 traps succesfully and am now trying to send SNMPv3 traps using Authentication and No Privac y with SHA being used for Authentication. My code looks like the following: my $host = '127.0.0.1'; my $agent = new NetSNMP::agent(); my $session = new SNMP::TrapSession(Des

Re: Sending traps using Perl

2011-10-05 Thread Bart Van Assche
On Wed, Oct 5, 2011 at 5:12 PM, Bart Van Assche wrote: > On Wed, Oct 5, 2011 at 3:49 PM, wrote: > >> Thanks for that. The sysUpTime seems to be OK now. >> >> Do you know if the two patches that you have sent to me will be contained >> in any forthcoming releases? >> > > These patches will be inc

Re: Sending traps using Perl

2011-10-05 Thread Bart Van Assche
On Wed, Oct 5, 2011 at 3:49 PM, wrote: > Thanks for that. The sysUpTime seems to be OK now. > > Do you know if the two patches that you have sent to me will be contained > in any forthcoming releases? > These patches will be included in all future 5.7 and 6.0 releases. And if someone (maybe me)

Re: Sending traps using Perl

2011-10-05 Thread Ali . Bruce
Bart, Thanks for that. The sysUpTime seems to be OK now. Do you know if the two patches that you have sent to me will be contained in any forthcoming releases? Regards, Ali Please consider the environment before printing this email --- This emai

Re: Sending traps using Perl

2011-10-05 Thread Bart Van Assche
On Tue, Oct 4, 2011 at 3:57 PM, wrote: > From Bart's statement below it is suggested that I can directly obtain the > value of sysUpTime from my SubAgent - How do I obtain this from my Perl > module? > > What the Perl SNMP module does is to include the time elapsed since system > startup in a tra

Re: Sending traps using Perl

2011-10-04 Thread Ali . Bruce
Dave, Sorry - Just realised that I've responded to your private e-mail address by mistake and not the net-snmp-users list Regards, Ali Please consider the environment before printing this email - Forwarded by Ali Bruce/UKMAIN/MM1 on 04/10/2011 14:55 - From: Ali Bruce/UKMAIN/MM1 To:

Re: Sending traps using Perl

2011-10-02 Thread Dave Shield
On 29 September 2011 16:41, wrote: > The odd thing is that if I do an snmp Get request on my Agent on sysUpTime the > correct time ticks value is returned i.e how long my Master Agent has been > running. > The unusual timeticks value seems to be only occurring when sending Traps.

Re: Sending traps using Perl

2011-09-30 Thread Ali . Bruce
Bart, Thanks for the patch. It seems to have solved the problem in sending SNMPv2 traps which do not have any additional var-binds. Only problem left is the sysUpTime issue. Regards, Ali Please consider the environment before printing this email ---

Re: Sending traps using Perl

2011-09-29 Thread Bart Van Assche
ing the value by ten. Also, even rebooting my > PC doesn't seem to have reset the value. > > The odd thing is that if I do an snmp Get request on my Agent on sysUpTime > the correct time ticks value is returned i.e how > long my Master Agent has been running. The unusual timeti

Re: Sending traps using Perl

2011-09-29 Thread Ali . Bruce
#x27;t seem to have reset the value. The odd thing is that if I do an snmp Get request on my Agent on sysUpTime the correct time ticks value is returned i.e how long my Master Agent has been running. The unusual timeticks value seems to be only occurring when sending Traps. I'm a bit confu

Re: Sending traps using Perl

2011-09-29 Thread Bart Van Assche
On Wed, Sep 28, 2011 at 6:23 PM, wrote: > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3384772387) 391 days, > 18:08:43.87 SNMPv2-MIB::snmpTrapOID.0 = OID: > IF-MIB::linkUp IF-MIB::ifIndex.1 = INTEGER: 1 SNMPv2-MIB::sysLocation.0 = > STRING: Here > > The timeticks value does not seem t

Re: Sending traps using Perl

2011-09-29 Thread Fulko Hew
On Thu, Sep 29, 2011 at 10:20 AM, wrote: > Fulko, > > I also tried to send my trap (oid 1.3.6.1.4.1.2257.11.1.1.0.0.9) without > any additional var-binds as an SNMPv1 trap and it worked. The problem seems > to be sending it as an SNMPv2 trap, SNMPv1 is OK. > > As for the sysUpTime, each time I r

Re: Sending traps using Perl

2011-09-29 Thread Ali . Bruce
Fulko, I also tried to send my trap (oid 1.3.6.1.4.1.2257.11.1.1.0.0.9) without any additional var-binds as an SNMPv1 trap and it worked. The problem seems to be sending it as an SNMPv2 trap, SNMPv1 is OK. As for the sysUpTime, each time I run the command the timeticks value has incremented b

Re: Sending traps using Perl

2011-09-29 Thread Fulko Hew
On Thu, Sep 29, 2011 at 8:56 AM, wrote: > Fulko, > > I understand your point that a LinkUp trap needs the additional ifIndex > varbind. I didn't understand why the example I had been given by Bart also > contained a sysDescr var-bind. My point is that I wish to send an enterprise > specific trap

Re: Sending traps using Perl

2011-09-29 Thread Ali . Bruce
Fulko, I understand your point that a LinkUp trap needs the additional ifIndex varbind. I didn't understand why the example I had been given by Bart also contained a sysDescr var-bind. My point is that I wish to send an enterprise specific trap that contains no additional var-binds. How do I

Re: Sending traps using Perl

2011-09-29 Thread Fulko Hew
On Thu, Sep 29, 2011 at 5:26 AM, wrote: > I have some further questions/observations on this subject. > > The reason that I have not been able to send my own Enterprise specific > trap is that it does not have any additional var-binds associated with the > trap i.e I want to send the trap with an

Re: Sending traps using Perl

2011-09-29 Thread Ali . Bruce
I have some further questions/observations on this subject. The reason that I have not been able to send my own Enterprise specific trap is that it does not have any additional var-binds associated with the trap i.e I want to send the trap with an empty associated var-bind list. e.g Bart in you

Re: Sending traps using Perl

2011-09-28 Thread Ali . Bruce
Bart, I'm definitely getting closer now. I can now send a linkUp trap from my software using SNMPv2. My code looks like this: my $host = '10.50.80.197'; my $session= new SNMP::TrapSession(DestHost => $host, Community => "public", Port => 162, Version => '2c'); $session->trap(oid =>

Re: Sending traps using Perl

2011-09-28 Thread Bart Van Assche
On Wed, Sep 28, 2011 at 4:36 PM, wrote: > However I am still unable to send out an SNMP v2 trap. > > Also is there a way of obtaining the value for uptime from the Master Agent > which is used for the SysUpTime field in the trap?? > Have you already tried to leave out the "uptime" argument ? Th

Re: Sending traps using Perl

2011-09-28 Thread Ali . Bruce
I have now managed to send out an SNMPv1 trap correctly using the following code: my $host = '10.50.80.197'; my $comm = 'public'; my $session= new SNMP::TrapSession(DestHost => $host, Community => $comm, Port => 162, Version => 1); $session->trap(enterprise=>'.1.3.6.1.4.1.2257

Sending traps using Perl

2011-09-28 Thread Ali . Bruce
I am trying to send an SNMPv2 trap from my SubAgent which can communicate with an SNMP Manager via the Agent X master agent. I am running version 5.7.1 pre2 on Windows and trying to send traps to the snmptrapd daemon. My code for sending the trap is as follows: my $host = '127.0.0.1';

seg fault while sending traps

2011-03-02 Thread Malathi Panyam
Sent before through my personal mail ID Hi, We experienced a seg fault (only one known occurrence so far) while sending the V2 traps out. I found the following link with exact location where I see the crash on our device. http://sourceforge.net/tracker/index.php?func=detail&aid=3078424&group

Re: Facing problems while sending traps using snmp api's

2010-11-12 Thread Dave Shield
On 12 November 2010 11:16, Sampige, Sahana Prabhakar (STSD) wrote: >    session.securityEngineIDLen = strlen("0x80001f8880654ceb30a484dc4c"); >    session.securityEngineID = (u_char*)malloc(session.securityEngineIDLen); >     > memcpy(session.securityEngineID,"0x80001f8880654ceb30a484dc4c",session

Facing problems while sending traps using snmp api's

2010-11-12 Thread Sampige, Sahana Prabhakar (STSD)
Hi, I am using net-snmp version 5.5. I am trying to send traps using the net-snmp library api's, but I am unsuccessful. But sending the trap using snmptrap command is successful with the same credentials. Below are the steps I have followed. 1. service snmptrapd stop 2. service snmpd stop 3. ad

Is there NetSNMP::agent support for sending Traps?

2010-09-27 Thread Fulko Hew
I just needed to coble up a test sub-agent (in Perl) that acts as an AgentX based sub-agent. All went well for what I needed to test, but... I see support for gets and sets, but what I didn't see was any support for forwarding traps to an AgentX master from Perl sub-agents. Is it missing, or am I

Re: Perl API for sending traps

2010-05-26 Thread Wes Hardaker
> On Mon, 24 May 2010 16:17:03 +0100, Joao Ferreira gmail > said: JF> I'dd like to know if there is an API accessible from the Perl modules to JF> send a trap to the currently configured trap destinations in snmpd.conf JF> I now this exists in C but I can figure out how to do it from th

Perl API for sending traps

2010-05-24 Thread Joao Ferreira gmail
Hello, I'dd like to know if there is an API accessible from the Perl modules to send a trap to the currently configured trap destinations in snmpd.conf I now this exists in C but I can figure out how to do it from the Perl API. Thank you Joao --

Re: Problem sending traps using snmptrap from Windows

2009-10-20 Thread Hal Rottenberg
I think the expression I'm looking for is, "if it had been a snake"... Thanks, Alex. On Tue, Oct 20, 2009 at 7:39 PM, Alex Burger wrote: > Hi. > > It sounds like you're running the built-in Windows snmptrap.exe which is in > c:\windows\system32. The Net-SNMP installer puts the bin folder at the

Re: Problem sending traps using snmptrap from Windows

2009-10-20 Thread Alex Burger
Hi. It sounds like you're running the built-in Windows snmptrap.exe which is in c:\windows\system32. The Net-SNMP installer puts the bin folder at the end of the path so the Windows version will come first. Try running it directly from the installed Net-SNMP bin folder. Alex Hal Rottenberg

Problem sending traps using snmptrap from Windows

2009-10-20 Thread Hal Rottenberg
Hi, I am using Net-SNMP 5.4.2 on Windows XP and 2003 Server. We've not had any problems with the agent, nor snmpwalk and some other utility commands. However, what I recently found is that I'm unable to send a trap using the snmptrap command. Regardless of what I put on the command-line, I get no o

Re: sending traps

2009-03-30 Thread Dave Shield
2009/3/30 Tanisha Kashyap : > Can you refer some reading material (apart from the net-snmp site) > or some sample agent (preferable) so that I can go through it and > finalize what approach to take and document it. No. I don't have any documentation I can point you towards. The best way forward

RE: sending traps

2009-03-30 Thread Tanisha Kashyap
snmp-users@lists.sourceforge.net Subject: Re: sending traps 2009/3/30 Tanisha Kashyap : > Can you refer some reading material (apart from the net-snmp site) > or some sample agent (preferable) so that I can go through it and > finalize what approach to take and document it. No. I don't have

RE: sending traps

2009-03-30 Thread Tanisha Kashyap
- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Monday, March 30, 2009 5:26 PM To: Tanisha Kashyap Cc: net-snmp-users@lists.sourceforge.net Subject: Re: sending traps 2009/3/30 Tanisha Kashyap : > If I develop a subagent then t

Re: sending traps

2009-03-30 Thread Dave Shield
2009/3/30 Tanisha Kashyap : > If I develop a subagent then that would run independent of the master agent > i.e. snmpd? It would run as a separate process to the master agent, yes. But it would be "dependent" on the master agent for being given requests to process. > Will that be a master-slave

RE: sending traps

2009-03-30 Thread Tanisha Kashyap
ality" -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Monday, March 30, 2009 5:10 PM To: Tanisha Kashyap Cc: net-snmp-users@lists.sourceforge.net Subject: Re: sending traps 2009/3/30 Tanisha Kashyap : >>

Re: sending traps

2009-03-30 Thread Dave Shield
2009/3/30 Tanisha Kashyap : >> Whenever you're working with SNMP, you'll always have an "agent" - a process >> that is running all of the time, and will respond to requests for >> information. > This agent is the net-snmp daemon snmpd? The Net-SNMP daemon "snmpd" is an example of an agent, yes.

RE: sending traps

2009-03-30 Thread Tanisha Kashyap
eforge.net Subject: Re: sending traps 2009/3/30 Tanisha Kashyap : > What's the difference between a dynamically loaded module and a subagent. Whenever you're working with SNMP, you'll always have an "agent" - a process that is running all of the time, and will respond

Re: sending traps

2009-03-30 Thread Dave Shield
2009/3/30 Tanisha Kashyap : > What's the difference between a dynamically loaded module and a subagent. Whenever you're working with SNMP, you'll always have an "agent" - a process that is running all of the time, and will respond to requests for information. The question is how this agent know w

RE: sending traps

2009-03-30 Thread Tanisha Kashyap
mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Monday, March 30, 2009 4:01 PM To: Tanisha Kashyap Cc: sazid.maham...@wipro.com; net-snmp-users@lists.sourceforge.net Subject: Re: sending traps 2009/3/30 Tanisha Kashyap : > My sole purpose is to actually make an agent which would implement a

Re: sending traps

2009-03-30 Thread Dave Shield
2009/3/30 Tanisha Kashyap : > My sole purpose is to actually make an agent which would implement a get/set > request > on a MIB object and would also implement sending traps. OK - in that case Sazid is quite correct. You should use one of the agent trap API calls. Please see the

RE: sending traps

2009-03-30 Thread sazid.mahammad
Conductor and Peripheral IPG); net-snmp-users@lists.sourceforge.net Subject: RE: sending traps Actually there are a lot of APIs provided by the net-snmp and I cant figure out the difference between them Some APIs start with the keyword netsnmp eg: netsnmp_send_traps, some start with the keyword

RE: sending traps

2009-03-30 Thread Tanisha Kashyap
My sole purpose is to actually make an agent which would implement a get/set request on a MIB object and would also implement sending traps. The traps are formed in a different way. Some data is parsed and the traps are formed using the parsed information. The traps are then sent to the NMS

Re: sending traps

2009-03-30 Thread Dave Shield
2009/3/30 : >  It depends upon you. You can send TRAP in same or write different . I would agree - you could either send the trap from within your application, or invoke the "snmptrap" command to do this. Coding this yourself is cleaner, while forking off snmptrap is probably simpler. >Pleas

RE: sending traps

2009-03-30 Thread Tanisha Kashyap
with. "No task is so humble that it does not offer an outlet for individuality" From: sazid.maham...@wipro.com [mailto:sazid.maham...@wipro.com] Sent: Monday, March 30, 2009 3:27 PM To: Tanisha Kashyap; net-snmp-users@lists.sourceforge.net Subject: RE: sen

RE: sending traps

2009-03-30 Thread sazid.mahammad
, March 30, 2009 3:02 PM To: net-snmp-users@lists.sourceforge.net Subject: sending traps Hi, I have written a small c program which parses data received extracts some information and stores it in some variables. Using this information I need to be able to make SNMP traps and forward them to

sending traps

2009-03-30 Thread Tanisha Kashyap
Hi, I have written a small c program which parses data received extracts some information and stores it in some variables. Using this information I need to be able to make SNMP traps and forward them to the NMS. Should I use the SNMP trap from within this program or write another c program whi

Re:"snmpd restart" causes subagent to stop sending traps

2009-03-24 Thread Pavel Hrdina
answer. Paul > Original message > From: Pavel Hrdina > Subject: "snmpd restart" causes subagent to stop sending traps > Date: 19.3.2009 15:23:42 > > Is the Net-SNMP library designed in a way to "sur

"snmpd restart" causes subagent to stop sending traps

2009-03-19 Thread Pavel Hrdina
Is the Net-SNMP library designed in a way to "survive" a restart cycle of snmpd daemon? I am facing a problem when my AgentX subagent stops sending traps after the snmpd daemon has been restarted. The subagent is a part of other program (log server) so it is not desirable for it to

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: dave.shi...@googlemail.com on behalf of Dave Shield Sent: Sat 1/31/2009 10:50 AM To: Angela Lazaro Cc: net-snmp-users@lists.sourceforge.net; net-snmp-cod...@lists.sourceforge.net 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: net-snmp-users@lists.sourceforge.net 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

Re: Sending Traps for different destinations at the same time

2009-01-30 Thread m.zeeshan
>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

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

Problem in sending traps from daemon(snmpd)

2008-11-24 Thread Shrawan Patel
Hi friends, I am using net-snmp-5.4.1.2 in my window system(Window-XP). I have generated the template codes by the help of "mib2c" command. I have made proper changes in template coding to perform all the GET & SETs operations. Now I want to send traps from my agent and for that I made chan

Re: sending traps

2008-06-13 Thread dan anderson
> It's not clear what you mean by "a standalone". > > The 'send_v2trap' routine is part of the agent API. > If you're working with a standalone application, then > this won't work. You'll need to use 'snmptrap.c' as > a template in this case. Ah, thanks. I didn't realize that API calls would req

Re: sending traps

2008-06-13 Thread Dave Shield
2008/6/13 dan anderson <[EMAIL PROTECTED]>: > In an attempt to send traps from a standalone, I've done the following: > > create_trap_session("localhost", 0, "public", 1, SNMP_MSG_TRAP2); > init_traps(); > [ populate notification_vars ] > send_v2trap(notification_vars); It's not clear what you mea

sending traps

2008-06-12 Thread dan anderson
In an attempt to send traps from a standalone, I've done the following: create_trap_session("localhost", 0, "public", 1, SNMP_MSG_TRAP2); init_traps(); [ populate notification_vars ] send_v2trap(notification_vars); But without success. When I step through in gdb, the sinks list is empty. I've tri

AgentX agent not sending traps (was RE: Enterprise trap question/send_v2trap API call)

2008-01-02 Thread McGowen, Wendy
Happy New Year, everyone! I didn't see any responses to this issue over the last 2 weeks, and I'm still stuck on this problem. Basically, I am unable to generate any traps from my AgentX agent - I know from my debug output that my code is being triggered, and I'm calling the SNMP API to send the t

Re: snmpd not sending traps

2007-10-03 Thread Neil Watson
I built and install net-snmp version 5.4.1. I used the same snmpd.conf file listed earlier in this thread: [EMAIL PROTECTED] snmp]# snmpd -f -Le -Ddisman registered debug token disman, 1 netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load() netsnmp_asser

Re: snmpd not sending traps

2007-10-02 Thread Dave Shield
On 02/10/2007, Neil Watson <[EMAIL PROTECTED]> wrote: > Building the software by hand in distributing it to all servers on our > network is something I'd like to avoid. Are you saying that the version > I have is not capable of sending traps using the 'defaultmonitors y

Re: snmpd not sending traps

2007-10-02 Thread Neil Watson
On Tue, Oct 02, 2007 at 03:31:15PM +0100, Dave Shield wrote: >Try running the agent using > > snmpd -f -Le -Ddisman [EMAIL PROTECTED] ~]# snmpd -f -Le -Ddisman Turning on AgentX master support. NET-SNMP version 5.1.2 No other output after more than ten minutes of load (1 and 5 minutes load

Re: snmpd not sending traps

2007-10-02 Thread Dave Shield
On 02/10/2007, Neil Watson <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] ~]# rpm -qa |grep -i net-snmp > net-snmp-libs-5.1.2-11.EL4.10.0.1 > net-snmp-5.1.2-11.EL4.10.0.1 > net-snmp-utils-5.1.2-11.EL4.10.0.1 That is a very old version of the Net-SNMP software, and the DisMan support has been compl

Re: snmpd not sending traps

2007-10-02 Thread Neil Watson
On Tue, Oct 02, 2007 at 04:33:57PM +0200, Thomas Anders wrote: >Neil Watson wrote: >> defaultMonitors yes > >What Net-SNMP version are you working with? [EMAIL PROTECTED] ~]# rpm -qa |grep -i net-snmp net-snmp-libs-5.1.2-11.EL4.10.0.1 net-snmp-5.1.2-11.EL4.10.0.1 net-snmp-utils-5.1.2-11.EL4.10.0.1

Re: snmpd not sending traps

2007-10-02 Thread Thomas Anders
Neil Watson wrote: > defaultMonitors yes What Net-SNMP version are you working with? For 5.3.x and up please make sure you read and follow the whole "defaultMonitors" paragraph in the snmpd.conf(5) manual page. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) ---

Re: snmpd not sending traps

2007-10-02 Thread Dave Shield
On 02/10/2007, Neil Watson <[EMAIL PROTECTED]> wrote: > Can anyone explain to me why an snmpd daemon configured using the below > file fails to send traps when the load numbers for 1, 5 and 15 minutes > are exceeded? At first sight - yes, that ought to be generating traps. Which version of the ag

snmpd not sending traps

2007-10-02 Thread Neil Watson
Can anyone explain to me why an snmpd daemon configured using the below file fails to send traps when the load numbers for 1, 5 and 15 minutes are exceeded? ### # # snmpd.conf # # - created by the snmpconf configuration prog

Re: sending traps to NNM

2007-07-16 Thread Dave Shield
On 16/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I now want to test sending traps to a HP Openview Network Node Manager What system is the OpenView system running on? The same server as the SNMP agent, or a different one? > I can issue commands like > > bash-3.00#

RE: sending traps to NNM

2007-07-16 Thread [EMAIL PROTECTED]
further to my earlier request I can add that if I also use a -Ci option (inform) this is the response I receive... bash-3.00# snmptrap -v 2c -c public -Ci localhost "" ucdStart sysContact.0 s "Dave" snmpinform: Timeout (Sub-id not found: (top) -> sysContact) Presumably this means the sent traps d

sending traps to NNM

2007-07-16 Thread [EMAIL PROTECTED]
I am desperately seeking some help as I am really struggling, but I accept this isn't really the remit of this list - if its more appropriate off list replies are fine by me. I have net-snmp installed and apparently working e.g. snmpget returns values from localhost. I now want to test se

Re: Problem Using TCP for Sending Traps

2007-05-18 Thread Dave Shield
On 18/05/07, John Giaccotto <[EMAIL PROTECTED]> wrote: > I have configured snmptrapd to listen on both UDP and TCP ports. > If I send a trap from another machine using the following line: > > snmptrap -v 2c -c public tcp:anIPAddress '' .1.3.6.1.4.1.1230.1 .0.0 s > "just here" > > Then $LOGFILE sh

Problem Using TCP for Sending Traps

2007-05-18 Thread John Giaccotto
Hi, I have configured snmptrapd to listen on both UDP and TCP ports. I start snmptrapd as follows: $SNMPTRAPD -On -C -c $SNMPTRAPDCONF -Lf $LOGFILE udp:anIPAddress:162 tcp:anIPAddress:162 If I send a trap from another machine using the following line: snmptrap -v 2c -c public tcp:anIPAddress '

How to assign a specific interface carrd for sending traps

2007-04-16 Thread Reza Salehi
Hi, If my machine has many interface cards(eth0.eth1,ath0,) and I want to assign outgoing traps to eth1(for example) what I should do. I appreciate your help, Reza - Ahhh...imagining that irresistible "new car" smell? Check outnew cars at

Re: Problems with Sun Solaris sending traps

2007-04-05 Thread Dave Shield
On 05/04/07, Michael Lineback <[EMAIL PROTECTED]> wrote: > I am attempting to send traps from a Sun Solaris 9 box to nms system.I > have Net-Snmp V5.1.1.Configuration options show disman/event-mib is > enabled in the Configure options. The 5.1.1 release is extremely old by now, and the dis

Problems with Sun Solaris sending traps

2007-04-05 Thread Michael Lineback
I am attempting to send traps from a Sun Solaris 9 box to nms system.I have Net-Snmp V5.1.1.Configuration options show disman/event-mib is enabled in the Configure options. The following is an example of the traps that I get from the server. Generic: 6; Specific: 2; Community: bipolar; E

Re: Sending traps with dynamic destinations

2007-02-12 Thread jin zhou
Yes, it is a good idea of using "snmp_clone_pdu" to improve the efficiency of the codes.And because the num of trap receivers is not certain, so I use "struct netsnmp_session *ss_head" as a head of linked list,which is built before sending a series of traps and free at last.It seems like that

Re: Sending traps with dynamic destinations

2007-02-12 Thread Dave Shield
On 12/02/07, jin zhou <[EMAIL PROTECTED]> wrote: > But I am afraid simply using : > snmp_send( ss1, pdu ); > snmp_send( ss2, pdu ); > snmp_send( ss3, pdu ); > > can't send a trap with content pdu to different destinations ,because the > routine snmp_send will free pdu automaticlly if succeed. Goo

Re: Sending traps with dynamic destinations

2007-02-11 Thread jin zhou
Dear Dave, Thank you for your suggestions.But I am afraid simply using : snmp_send( ss1, pdu ); snmp_send( ss2, pdu ); snmp_send( ss3, pdu ); can't send a trap with content pdu to different destinations ,because the routine snmp_send will free pdu automaticlly if succeed.I have thou

Re: problem with sending traps

2007-02-10 Thread Dave Shield
On 10/02/07, Hamid Taromian <[EMAIL PROTECTED]> wrote: > i have this line trap2sink all That would send traps to the host called "all" > how can i get sure that my first machine is sending the trap. Run the agent with the '-d' flag. That will show raw packet dumps - including any traps. Dave

problem with sending traps

2007-02-10 Thread Hamid Taromian
hi, i am using net snmp version 5.2.3 and i want to send traps. i have this line trap2sink all, and once i used trap2sink (the manager ip), and i am using send_v2trap. but i see nothing at the manager machine. how can i get sure that my first machine is sending the trap. i have to mentio

Re: Sending traps with dynamic destinations

2007-02-09 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 08/02

Re: Sending traps with dynamic destinations

2007-02-08 Thread Dave Shield
On 08/02/07, jin zhou <[EMAIL PROTECTED]> wrote: > And is the method I use the best way of resolving the problem of dynamic > trap receiver? Probably, yes. The alternative would be to manipulate the contents of the snmpNotifyTable and snmpTargetTable - but that would affect *all* traps sent by t

Re: Sending traps with dynamic destinations

2007-02-08 Thread jin zhou
Cleared~! OMG,it is so easy to you,but i can't think about it,thank you very much! And is the method I use the best way of resolving the problem of dynamic trap receiver?If I meet these questiones of API using angain,how can I find out the error quickly by myself? Dave Shield <[EMAIL PRO

Re: Sending traps with dynamic destinations

2007-02-08 Thread Dave Shield
On 08/02/07, jin zhou <[EMAIL PROTECTED]> wrote: > I choose using API routines > "snmp_pdu_create(SNMP_MSG_TRAP2)" and "snmp_send(ss,pdu)" > to send traps,while the session peername and port can be specified.But i > meet the troulbe:it always send traps on port 161 Specify the destination as "

Re: Sending traps with dynamic destinations

2007-02-08 Thread jin zhou
net-snmp 5.2.3 ,working on Linux,thank you! Thomas Anders <[EMAIL PROTECTED]> 写道: jin zhou wrote: > I choose using API routines "snmp_pdu_create(SNMP_MSG_TRAP2)" and > "snmp_send(ss,pdu)" to send traps,while the session peername and port can be > specified.But i meet the troulbe:it always send

Re: Sending traps with dynamic destinations

2007-02-08 Thread Thomas Anders
jin zhou wrote: > I choose using API routines "snmp_pdu_create(SNMP_MSG_TRAP2)" and > "snmp_send(ss,pdu)" to send traps,while the session peername and port can be > specified.But i meet the troulbe:it always send traps on port 161,even > through i use the code"session.remote_port= SNMP_TRAP_PORT

Sending traps with dynamic destinations

2007-02-07 Thread jin zhou
Dear Dave and all, Hi,I am sorry to interrupt you again becuase I have another trouble.I need to send traps to dynamic destinations which only can be determined when sending traps on IPV4,so the trap API routines 'send_easy_trap()' or 'send_v2trap' are not so effect

Re: sending traps from embedded AgentX subagent

2007-01-15 Thread Dave Shield
On 20/12/06, Srivastava, Namburi (IE10) <[EMAIL PROTECTED]> wrote: > These are the packet dumps I got even after changing the socket through > which the master and sub-agent communicate. Hmmm... Looking back at the previous conversation, you were talking about configuring the Master and subagent

RE: sending traps from embedded AgentX subagent

2006-12-19 Thread Srivastava, Namburi (IE10)
064: 6E 74 58 20 73 75 62 2D 61 67 65 6E 74 00 00 00ntX sub-agent... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, December 19, 2006 2:53 AM To: Srivastava, Namburi (IE10) Cc: David Arthur; net-snmp-users@lists.sourceforge.n

RE: sending traps from embedded AgentX subagent

2006-12-19 Thread Srivastava, Namburi (IE10)
ubject: Re: sending traps from embedded AgentX subagent On 18/12/06, Srivastava, Namburi (IE10) <[EMAIL PROTECTED]> wrote: > Okay, so in that case if I add the following line of code in my Subagent > before init_subagent() > > netsnmp_ds_set_stri

Re: sending traps from embedded AgentX subagent

2006-12-19 Thread Dave Shield
On 18/12/06, Srivastava, Namburi (IE10) <[EMAIL PROTECTED]> wrote: > Okay, so in that case if I add the following line of code in my Subagent > before init_subagent() > > netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, >NETSNMP_DS_AGENT_X_SOCKET, > "/var/agentx/master")

RE: sending traps from embedded AgentX subagent

2006-12-18 Thread Srivastava, Namburi (IE10)
connect to? Regards, Sri. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, December 18, 2006 4:50 PM To: Srivastava, Namburi (IE10) Cc: David Arthur; net-snmp-users@lists.sourceforge.net Subject: Re: sending traps from embedded Agent

Re: sending traps from embedded AgentX subagent

2006-12-18 Thread Dave Shield
On 18/12/06, Srivastava, Namburi (IE10) <[EMAIL PROTECTED]> wrote: > I have tried doing that... > This is the output I got after agentx/master initialization was done > > Sending 46 bytes to 192.168.254.1 Then this is the socket to which the subagent is trying to send AgentX requests. I.e. a netw

RE: sending traps from embedded AgentX subagent

2006-12-18 Thread Srivastava, Namburi (IE10)
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, December 18, 2006 3:10 PM To: Srivastava, Namburi (IE10) Cc: David Arthur; net-snmp-users@lists.sourceforge.net Subject: Re: sending traps from embedded AgentX subagent On 18/12/06, Srivastava

  1   2   >