Re: rfc: net-snmp-config.h

2006-08-22 Thread Magnus Fromreide
On Tue, Aug 22, 2006 at 09:26:03AM +0100, Dave Shield wrote: > > TA> It's a start, but I think our current approach of shipping all > > TA> autoconf variables in net-snmp-config.h is even more flawed than > > TA> that. See some random Debian bug (wrt. some other software) on the > > TA> topic: > >

NET-SNMP 5.3.1 on Fedora Core 5 (traffic update every 30 seconds)

2006-08-22 Thread Gilson Soares
Dear Sirs   Using STG (SNMP Traffic Grapher: http://leonidvm.chat.ru/) to see short term traffic consumption, I notice NET-SNMP 5.3.1 running on Fedora Core 5 (FC5) is updating traffic counters EVERY 30 SECONDS. in opposite to standard EVERY SECOND on v.5.2.1 (FC4).   I tried to figure out if the

Re: Problems implementing a v2 trap, "send_trap: no v2 trapOID varbind provided"

2006-08-22 Thread Felipe openglx
Thanks for that tip, Dave! I was already looking at those functions, using a few printf() around the code, but they were strange. I went debugging with GDB, and now things are getting even stranger. I've set the breakpoint at the last 'if' condition it checked before returning. (gdb) b agent_trap

Forward V1 traps to V3 informs

2006-08-22 Thread Passera Pablo-APP015
Hi, We are currently using net-snmp for forwarding v1 traps to v3 informs. For the transformation we are using the implementation that is already coded in net-snmp and that is following the RFC 3584. However, the NM is not understanding the traps format when these are forwarded. I know tha

RE: how can I send linkUp trap in my code

2006-08-22 Thread Li Gan
Hi Dave, Thank you very much for your advice. I will try. Another question about linkup trap, can I just use only 1 varbind list to send all the interfaces generated linkup trap? I mean by using "snmp_varlist_add_variable", bind all the interfaces into the same list one by one. Thanks Li

Re: how can I send linkUp trap in my code

2006-08-22 Thread Dave Shield
On 22/08/06, Li Gan <[EMAIL PROTECTED]> wrote: >But when the program running into the second interface, > by debugging, when arriving "snmp_varlist_add_variable", the program dumped. Ah. I see a problem. You're freeing the previous varbind list at the end of the loop, but the link

RE: how can I send linkUp trap in my code

2006-08-22 Thread Li Gan
Hi, Thank you for your answer. In fact, I used my own timer to collect link status very 3 second, I start my timer just before the receive() function in snmpd.c. My issue is that there 2 interfaces, for the first interface, program running fine, but when running to the second interface, at the

RE: how can I send linkUp trap in my code

2006-08-22 Thread Li Gan
Hi Dave, Thank you for you answer. My issue is that there are 2 interfaces, for the first interface, I can use "snmp_varlist_add_variable" and then use "send_v2trap(linktrap_vars)", the program looks fine. But when the program running into the second interface, by debugging, when arriving "snmp_

Re: rfc: net-snmp-config.h

2006-08-22 Thread Dave Shield
On 22/08/06, Wes Hardaker <[EMAIL PROTECTED]> wrote: > DS> Something like > DS> #ifndef OMIT_PROBLEMATICAL_SETTINGS > > If we don't use those, I wouldn't include them by default... Fine. I was assuming that the default would be to provide the same set of definitions that we've always done (for bac

Re: Problem while compiling

2006-08-22 Thread Wes Hardaker
> "JP" == Jenny Paul <[EMAIL PROTECTED]> writes: JP> #include JP> #include JP> The problem seems to be that the header files within mibgroup are not JP> copied in /usr/local/include. Is it a bug in the Makefile. Or am I JP> doing something wrong? No, you're right. We've been wanting to fi

Re: rfc: net-snmp-config.h

2006-08-22 Thread Wes Hardaker
> "DS" == Dave Shield <[EMAIL PROTECTED]> writes: DS> Is it really that unimaginable that a different package might also DS> define LOGFILE? Sure! No, just kidding of course. DS> a) Net-SNMP-specific settings - stuff that's only meaningful to our code. DS> (e.g. DEFAULT_MIBDIRS, USE_REVERS

Re: rfc: net-snmp-config.h

2006-08-22 Thread Wes Hardaker
> "DS" == Dave Shield <[EMAIL PROTECTED]> writes: DS> Something like DS> #ifndef OMIT_PROBLEMATICAL_SETTINGS If we don't use those, I wouldn't include them by default... -- Wes Hardaker Sparta, Inc. - Using Tomcat but n

Re: how can I send linkUp trap in my code

2006-08-22 Thread Wes Hardaker
> "LG" == Li Gan <[EMAIL PROTECTED]> writes: LG> Am I right? unfortunately, it doesn't work, please help me , LG> thanks! It's unclear where the code is being executed? It won't work during the init_XXX() phases of your code, but if you set an snmp_alarm and put it in a function for after th

Re: how can I send linkUp trap in my code

2006-08-22 Thread Dave Shield
On 22/08/06, Li Gan <[EMAIL PROTECTED]> wrote: > How can I add auto linkUp trap in my code? Which version of the agent are you using? For recent releases, please see the snmpd.conf(5) man page, and the description of the "linkUpDownNotifications" directive. > What I did is as following: [snip

how can I send linkUp trap in my code

2006-08-22 Thread Li Gan
Hi,   How can I add auto linkUp trap in my code?   What I did is as following:   oid if_index_oid[] = {1,3,6,1,2,1,2,2,1,1,1}; oid link_up_oid[]    = { 1,3,6,1,6,3,1,1,5, 4 }; oid snmptrap_oid[] = { 1,3,6,1,6,3,1,1,4, 1, 0 };   int i;   netsnmp_variable_list *linktrap_vars=NULL;

Re: rfc: add/remove warnings for 5.4?

2006-08-22 Thread Dave Shield
On 22/08/06, Thomas Anders <[EMAIL PROTECTED]> wrote: > Shouldn't we also align everything to output the new disman/event name > instead of the former disman/event-mib, then? Yes. > Is there anyone else who thinks this is confusing? Yes. Fixed. Dave (the monosyllabic)

Re: RT Linux net-snmp help?

2006-08-22 Thread Claus Klein
On Tuesday 22 August 2006 06:10, shanmuga mari wrote: > Has anyone used NET-SNMP in RT Linux platform? yes, we use net-snmp with buildroot based system on ppc. checkout the build environment from http://buildroot.uclibc.org/ claus ---

Re: rfc: add/remove warnings for 5.4?

2006-08-22 Thread Thomas Anders
Dave Shield wrote: >> TA> I tend to think that e.g. the disman/event-mib warnings aren't as >> TA> appropriate as in 5.3 anymore and should be relaxed. >> >> I'd tend to agree. > > I'd tend to have removed the warning, then :-) Shouldn't we also align everything to output the new disman/event nam

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: rfc: net-snmp-config.h

2006-08-22 Thread Thomas Anders
Robert Story wrote: > On Wed, 16 Aug 2006 00:01:33 +0200 Thomas wrote: > TA> Another proposal that came up on IRC was to split net-snmp-config.h into > an > TA> external and an internal header file (with the PACKAGE_* variables being > TA> in the internal one, of course). > > I would like to see

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

[Fwd: Problem while compiling]

2006-08-22 Thread Jenny Paul
Hi I forgot to mention the net-snmp version I am using. Its 5.3.1. Regards Jenny Original Message Subject: Problem while compiling Date: Tue, 22 Aug 2006 12:32:04 +0530 From: Jenny Paul <[EMAIL PRO

Problem while compiling

2006-08-22 Thread Jenny Paul
Hi I have a problem while compiling my application. I am calling the following functions for access control   init_vacm_vars();      init_usmUser(); I have included the following #include directives #include #include The problem seems to be that the header files wit

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

Re: rfc: net-snmp-config.h

2006-08-22 Thread Dave Shield
On 22/08/06, Thomas Anders <[EMAIL PROTECTED]> wrote: > Agreed in general. Still, where would you suggest to put the PACKAGE_* > variables in that picture? c) They're clearly generically named, but the values are Net-SNMP specific. > Actually, they look too problematic to be put anywhere. :-(

Re: rfc: net-snmp-config.h

2006-08-22 Thread Thomas Anders
Dave Shield wrote: > As I see it, there are three general types of entry in the config.h file: > >a) Net-SNMP-specific settings - stuff that's only meaningful to our code. > (e.g. DEFAULT_MIBDIRS, USE_REVERSE_ASNENCODING, etc) [...] > b) Generic system-related settings > (e

Re: rfc: net-snmp-config.h

2006-08-22 Thread Dave Shield
> TA> It's a start, but I think our current approach of shipping all > TA> autoconf variables in net-snmp-config.h is even more flawed than > TA> that. See some random Debian bug (wrt. some other software) on the > TA> topic: > > TA> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363173 Wes> We

Re: rfc: net-snmp-config.h

2006-08-22 Thread Thomas Anders
Magnus Fromreide wrote: > On Tue, Aug 22, 2006 at 12:03:05AM +0200, Thomas Anders wrote: >> Robert Story wrote: >>> On Fri, 18 Aug 2006 10:29:17 -0700 Wes wrote: >>> WH> And that's included automatically by what file? Or is included >>> WH> explicitly by what files? >>> >>> Well, as near as I can