Re: working with tables...

2008-04-17 Thread Alejandro Islas
Solved! A reference to the head of my linked list was missing in my *_get_first_data_point function. Thanks for the help, Alejandro On Thu, Apr 17, 2008 at 2:16 PM, Alejandro Islas <[EMAIL PROTECTED]> wrote: > Ok...using gdb I found where my code crashes. In the handler function that > foll

Re: working with tables...

2008-04-17 Thread Alejandro Islas
Ok...using gdb I found where my code crashes. In the handler function that follows MonThreadsTable_handler( netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info*reqinfo, netsnmp_request_info *request

Re: working with tables...

2008-04-17 Thread Alejandro Islas
On Thu, Apr 17, 2008 at 3:47 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > On 17/04/2008, Alejandro Islas <[EMAIL PROTECTED]> wrote: > > I tried to use mib2c.container.conf file but mib2c > > wasn't able to found it > > Hmmm... what version of the toolkit are you using? > mib2c.container.conf has b

Re: working with tables...

2008-04-17 Thread Dave Shield
On 17/04/2008, Alejandro Islas <[EMAIL PROTECTED]> wrote: > I tried to use mib2c.container.conf file but mib2c > wasn't able to found it Hmmm... what version of the toolkit are you using? mib2c.container.conf has been around since the 5.2 release (although the internals have changed significantly

Re: working with tables...

2008-04-16 Thread Alejandro Islas
Hi Dave, sorry for answering so late, I'd to do something else. I'm still having the same problem.I tried to use mib2c.container.conf file but mib2c wasn't able to found it,so I continue using interate.conf. I have some questions. 1)After using mib2c my .c file only contains create/remove entries f

Re: working with tables...

2008-04-16 Thread Dave Shield
On 16/04/2008, Alejandro Islas <[EMAIL PROTECTED]> wrote: > I'm kind of new to linux programming so could you please recommend > me a debugger See http://www.net-snmp.org/wiki/index.php?title=Debugger > I used the mib2c.iterate.conf mib2c file to generate the code. > Is this the best configurati

Re: working with tables...

2008-04-16 Thread Alejandro Islas
Thanks for the info Dave, I did the GET requests with the same results. I'm kind of new to linux programming so could you please recommend me a debugger, could Eclipse help me??? Another question, I used the mib2c.iterate.conf mib2c file to generate the code. Is this the best configuration file to

Re: working with tables...

2008-04-16 Thread Dave Shield
On 16/04/2008, Alejandro Islas <[EMAIL PROTECTED]> wrote: > But when I try to read a table..the snmpd deamon crashes. > Could anyone give me an idea of where to > start to lookaround??? One thing would be to identify exactly what triggers the crash. Does it fail on a GETNEXT of the first entry? On

working with tables...

2008-04-15 Thread Alejandro Islas
Hi all, I'm trying to develop a private mib module that involves both scalars and a couple of tables. I don't have any problems with the scalars, I can read them using snmpwalk without problems. But when I try to read a table..the snmpd deamon crashes. I use mib2c to generate my code's template, an