snmpd agent not listening on port

2010-09-02 Thread Abraham Varricatt
I can't get the snmpd agent I built to listed to connections. Here is what happens when I start it, > sudo -i snmpd -f -Lo udp:161 -C -c /home/abraham/snmpd.conf NET-SNMP version 5.5 and no more output. It just stays stuck like that. But from another console on the same system I try this, > snm

CVF2: don't assume the process status is still available. ham

2010-09-02 Thread Wes Hardaker
Ok, here's a now copy that checks all fopens and fgets: diff --git a/net-snmp/agent/mibgroup/host/data_access/swrun_procfs_status.c b/net-snmp/agent/mibgroup/host/data_access/swrun_procfs_status.c index 0c562f6..069516f 100644 --- a/net-snmp/agent/mibgroup/host/data_access/swrun_procfs_status.c

Re: error when using cache

2010-09-02 Thread Brad Lira
apparently the return type needs to be void rather than int, for some reason the generated code uses int. Now i get error when loading the library, any ideas? undefined symbol: netsnmp_tdata_get_first_row On Thu, Sep 2, 2010 at 2:55 PM, Brad Lira wrote: > I keep getting compile error when t

CFV: fix tlstcp address parsing

2010-09-02 Thread Wes Hardaker
The existing TLSTCP support doesn't handle tls:10.0.0.1 correctly. With this patch all the proper formats work again: tls:10161 tls:0.0.0.0 tls:0.0.0.0:10161 diff --git a/net-snmp/snmplib/transports/snmpTLSTCPDomain.c b/net-snmp/snmplib/transports/snmpTLSTCPDomain.c index 1cb5653..62c20f

error when using cache

2010-09-02 Thread Brad Lira
I keep getting compile error when trying to use cache for my snmp application with free function. But i don't get the same error for the load function, which is weired, anyone ran into the same problem? animalTable.c:64: error: conflicting types for âanimalTable_freeâ animalTable.h:14: note: pre

Re: CVF: don't assume the process status is still available.

2010-09-02 Thread Wes Hardaker
> On Thu, 2 Sep 2010 18:11:48 +0200, Bart Van Assche > said: BVA> No problem. If you are going to revisit this: have you noticed that the BVA> return value of the first fgets() call in the loop isn't checked, while this BVA> call may fail ? I suspect there is error cleanup that could b

Re: CVF: don't assume the process status is still available.

2010-09-02 Thread Bart Van Assche
On Thu, Sep 2, 2010 at 5:51 PM, Wes Hardaker wrote: > > On Wed, 1 Sep 2010 21:56:16 +0200, Bart Van Assche < > [email protected]> said: > > BVA> Sorry, missed that message. But even that second patch only adds a > check for > BVA> the return value of one of the two fopen() calls ? > > Yep...

Re: CVF: don't assume the process status is still available.

2010-09-02 Thread Wes Hardaker
> On Wed, 1 Sep 2010 21:56:16 +0200, Bart Van Assche > said: BVA> Sorry, missed that message. But even that second patch only adds a check for BVA> the return value of one of the two fopen() calls ? Yep I'd need to go revisit it again and haven't had the time yet. -- Wes Hardaker

Re: [python] 5.6-rc1... what about bug 2952766?

2010-09-02 Thread Wes Hardaker
> On Thu, 02 Sep 2010 15:49:05 +0200, Diego Billi said: DB> Several mounth ago i submitted a bug report: DB> http://sourceforge.net/tracker/?func=detail&aid=2952766&group_id=12694&atid=112694 DB> The bug fixed with that patch is really annoying, especially in a DB> production environment.

Re: sending V3(USM) secure traps from an agent

2010-09-02 Thread Wes Hardaker
> On Thu, 2 Sep 2010 10:57:47 -0400, Tim Spires said: TS> My hope was by calling snmptrap with the -u options for the security name TS> and perhaps the -l option TS> for security level that snmptrap would use my local USM config tables to TS> extract the security credentials and send TS> t

sending V3(USM) secure traps from an agent

2010-09-02 Thread Tim Spires
Hello, would like to ask for a little help or some pointers in the right direction if possible. I need to send secure V2 traps/notifications from our agent to a monitoring station. Currently we have a script that process the snmpTargetAddrTable and snmpTargetParamsTable looking for trap target

RE: undefined symbol: smux_listen_sd

2010-09-02 Thread Prakash
Thanks Hardaker Regards, Prakash Raju -Original Message- From: Wes Hardaker [mailto:[email protected]] Sent: Wednesday, September 01, 2010 7:53 PM To: PrakashRaju Meka Cc: [email protected] Subject: Re: undefined symbol: smux_listen_sd > On Wed, 1 S

Re: Building net-snmp on windows

2010-09-02 Thread Bart Van Assche
On Thu, Sep 2, 2010 at 4:04 PM, Vinod Nanjaiah wrote: > Hi! > > I am trying to build net-snmp-5.5 on Windows-7 and am stuck at the point > where "netsnmpmibssdk" is to be built. > > > > Build instructions that I followed are from > > http://net-snmp.sourceforge.net/docs/README.win32.html --> "5.

[python] 5.6-rc1... what about bug 2952766?

2010-09-02 Thread Diego Billi
Several mounth ago i submitted a bug report: http://sourceforge.net/tracker/?func=detail&aid=2952766&group_id=12694&atid=112694 The bug fixed with that patch is really annoying, especially in a production environment. Is the patch going to be included in 5.6 release? -

Re: CFV: Re: Odd code

2010-09-02 Thread Thomas Anders
Wes Hardaker wrote: > The obvious patch is: +1 +Thomas -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thr