Re: Follow up to Eitiqute question

2006-08-11 Thread davidlott
Dave,   I did look at clientaddr but the explanation provided to me back then seemed to indicate a different use.  I dont have the email in front of me but I was left with the impression that clientaddr  ... specified the client address ... i.e.  from the perspective of the polling server... the D

Re: I don't understand this code

2006-08-11 Thread Dave Shield
> If you're going to malloc everything right away, why not just use an array > and skip the pointers. I haven't looked at the code in question, but the most likely explanation would be if you're going to re-size the array at a later date - expanding it if the number of sensors exceeds the initial

I don't understand this code

2006-08-11 Thread Bruce Shaw
(from agent/mibgroup/ucd-snmp/lmSensors.c -simplified for readability) typedef struct { charname[MAX_NAME]; int value; } _sensor; typedef struct { int n; _sensor*sensor; size_t current_len; } _sensor_array; for (i = 0; i < N_TYPES; i++){ /

Re: Follow up to Eitiqute question

2006-08-11 Thread Dave Shield
On 11/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I need to specify the SOURCE IP address in both my polling / agent > environment. Have you looked at the "clientaddr" configure token, which should provide at least part of what you are looking for. There's also a patch (#1509943) on the

Follow up to Eitiqute question

2006-08-11 Thread davidlott
Per Thomas Anders:   > I'd start with describing your desired change(s) in detail and see > whether it attracts anyone to do the work. If no-one picks it up > immediately, I'd submit a feature request at > http://sourceforge.net/tracker/?group_id=12694&atid=362694 . > Patches should be submitted

Re: provide MIB module in subagent already implemented in main agent

2006-08-11 Thread Wes Hardaker
> "AS" == Avnindra Singh <[EMAIL PROTECTED]> writes: AS> Using agent thus built doesn't have the ifTable support. When I connect AS> my subagent to implement ifTable, I still get no such name error. Are you sure it's connecting properly? Walk the NET-SNMP-AGENT-MIB::nsMibRegistry table to

Re: My mib2 object-ids are not working why

2006-08-11 Thread Dave Shield
On 11/08/06, rajasekhar kavuri <[EMAIL PROTECTED]> wrote: > i am able > to get all the oid values under the system group. But i am not able to get > the oid values under the interfaces, at, tcp,udp,ip,icmp, snmp. Please see the FAQ entry

My mib2 object-ids are not working why

2006-08-11 Thread rajasekhar kavuri
hai,i am using net-snmp-5.2 version i have succesfully configured and made the agent to run. i am able to get the system.uptime oid correctly . i am able to get all the oid values under the system group. But i am not able to get the oid values under the interfaces, at, tcp,udp,ip,icmp, snmp. how to

Re: va_copy

2006-08-11 Thread Thomas Anders
Dave Shield wrote: > The most complete description of va_copy status that I've come across is at >http://www.unixpapa.com/incnote/variadic.html I've committed an embarrassingly simple fix for the va_copy build issue to 5.2.x, 5.3.x and MAIN. Works fine for me on all build farm machines. Feel f

provide MIB module in subagent already implemented in main agent

2006-08-11 Thread Avnindra Singh
Hi All, I have to provide a custom subagent which implements ifTable for our box. How do I disable IF-MIB module from main agent so that when a SNMP get request comes to access say ifNumber.0 , the subagent is queried for it and not the main agent? I tried taking out mibII out from the net-

Re: linking libraries "as-needed"

2006-08-11 Thread Thomas Anders
Wes Hardaker wrote: > I don't think applying a patch we have doubts is portable is > acceptable at any branch of the tree... Making it an option to turn > on, however, is. But by default without an option to turn off seems, > um, broken. Sounds fine as a general statement. But I'm not sure I agr

Re: Bug with transient interfaces (ppp)?

2006-08-11 Thread Thomas Anders
Wes Hardaker wrote: >> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: > > TA> This problems comes up every so often on IRC and MRTG-like forums > > For the ifTable you'd be better off graphing by something other than > ifindex anyway (say ifName). Fixes the problem ;-) Some [versions] of