Re: Loading a particular MIB causes "init_snmp" to crash

2010-08-13 Thread Dave Shield
On 13 August 2010 19:09, Gaurav Chaturvedi wrote: > Hi Dave, > I am glad to say that I have fixed the issue of library crashing due to > erroneous MIBs or any parse error in MIB and I have done it within a day. > > Please let me know how to submit the fix/patch now. See http://www.net-snmp.or

Re: Loading a particular MIB causes "init_snmp" to crash

2010-08-13 Thread Gaurav Chaturvedi
Hi Dave, I am glad to say that I have fixed the issue of library crashing due to erroneous MIBs or any parse error in MIB and I have done it within a day. Please let me know how to submit the fix/patch now. I must say here that it is really an amazing learning experience and an ultimate proud fe

Re: Generating a trap with table infomation

2010-08-13 Thread Dave Shield
On 13 August 2010 13:28, Norasyikin MD Ali wrote: > I'm trying to generate a trap containing all the information from my > activeAlarmTable which has 8 columns. > In my agent, I created a function : > tr_status tr_mib_agent_generate_alarm_event_trap(int type, >                         const char *

Re: Generating a trap with table infomation

2010-08-13 Thread Wes Hardaker
> On Fri, 13 Aug 2010 14:28:32 +0200, Norasyikin MD Ali > said: NMA> So in my code, i'll have to match each varbind with an OID. In short, NMA> get an OID for each column which is proving quite messy (meaning I don't NMA> know how to do it). Is there a function to create a varlist for

Generating a trap with table infomation

2010-08-13 Thread Norasyikin MD Ali
Hello, I'm trying to generate a trap containing all the information from my activeAlarmTable which has 8 columns. In my agent, I created a function : tr_status tr_mib_agent_generate_alarm_event_trap(int type, const char *oidstr1, uint32_t id, cons