Re: Using Net SNMP to log to Syslog

2005-06-06 Thread Robert Story
On Mon, 6 Jun 2005 15:47:28 +0100 Rose, wrote: RPD> At present our firewall regulations do not permit the sending of snmp RPD> traps through the network,however the server I wish to monitor RPD> Has a syslog server process . How can I configure the agent to send to RPD> syslog rather than send a tr

Re: problem cross-compiling net-snmp

2005-06-06 Thread Robert Story
On Mon, 6 Jun 2005 18:56:45 +0200 Harold wrote: HJS> I had the same error message as stageiup (2005-04-26) and JeffJohnson HJS> (2005-06-02) HJS> HJS> I switched from gcc 2.95.3 to 3.3.2 and the "trick" mentioned by HJS> JeffJohson seemed to work. However, like him I don't think it's the right HJS

Re: CrossCompiling Net-Snmp for Arm9

2005-06-06 Thread Robert Story
On Thu, 2 Jun 2005 10:48:14 -0700 Jeff wrote: JJ> Unfortunately, for whatever reason the ARM toolchain defaults to using the JJ> sys-include version, even if I have "-I /usr/local/arm-linux/include" in my JJ> CFLAGS and CPPFLAGS. The netsnmp configure script then fails the test for JJ> net/route.h

Re: lmSensors on Sun hardware

2005-06-06 Thread Mike Fisher
Bruce Shaw wrote: One problem with the material delivered by picl is that it doesn't fit nicely into the data structures provided in LM-SENSORS (particularly because of nesting) so I was also toying with a new MIB and perhaps a Hardware Abstraction Layer that would scoop up information on one pas

Re: merging cach_handler handler arg passing

2005-06-06 Thread Robert Story
On Mon, 06 Jun 2005 17:02:42 +0100 Dave wrote: DS> What would actually break if the declaration was changed from DS> DS> void *cache_hint; DS> DS> to DS> netsnmp_handler_args *cache_hint; DS> DS> If anything is currently using this field, they must be casting DS> it to a 'netsnmp_handl

Re: merging cach_handler handler arg passing

2005-06-06 Thread Dave Shield
On Mon, 2005-06-06 at 16:44, Robert Story wrote: > DS> Given that's [cache_hint] is only ever used as a pointer to a > DS> netsnmp_handler_args structure, why not declare it as such. > And now I'd imagine we are stuck in the backwards compatibility > tarpit. Or do you think we can bend the rules

RE: problem cross-compiling net-snmp

2005-06-06 Thread Harold J. Ship
>HJS> When I try to run configure, I receive the following >warning (and net-snmp >HJS> does not compile): > >Lots of platforms have similar warnings, but compile fine. >What errors do you >get when compiling? > I had the same error message as stageiup (2005-04-26) and JeffJohnson (2005-06-02)

Re: problem cross-compiling net-snmp

2005-06-06 Thread Robert Story
On Sun, 5 Jun 2005 18:09:51 +0200 Harold wrote: HJS> When I try to run configure, I receive the following warning (and net-snmp HJS> does not compile): Lots of platforms have similar warnings, but compile fine. What errors do you get when compiling? -- NOTE: messages sent directly to me, instead

Re: merging cach_handler handler arg passing

2005-06-06 Thread Robert Story
On Mon, 06 Jun 2005 10:10:14 +0100 Dave wrote: DS> The main disadvantage of the 'cache_hint' approach is that the DS> hint field is defined as an opaque "void*" pointer. How is a DS> MIB developer meant to know how to use it? Ummm, our excellent documentation? Hee hee, ha ha! Oh, I kill myself!

Re: why my snmpd didn't work well?

2005-06-06 Thread Robert Story
On Mon, 06 Jun 2005 16:02:26 +0100 Dave wrote: DS> On Sat, 2005-06-04 at 06:39, nauhiyux xu wrote: DS> > rocommunity private DS> > rwcommunity public DS> > com2sec local 10.214.17.80 private DS> > com2sec mynetwork 10.214.17.80 public DS> DS> I strongly suggest that you don't

Re: why my snmpd didn't work well?

2005-06-06 Thread Dave Shield
On Sat, 2005-06-04 at 06:39, nauhiyux xu wrote: > rocommunity private > rwcommunity public > com2sec local 10.214.17.80 private > com2sec mynetwork 10.214.17.80 public I strongly suggest that you don't try and mix the two styles of access control. *Either* use "r[ow]community

lmSensors on Sun hardware

2005-06-06 Thread Mike Fisher
Is anyone currently working on the lmSensor code for Sun hardware? From what I can see, it looks like the changes in CVS since the 5.2.1 release are generally cosmetic. I'm working on changes to the picl portions of the code to handle a much wider range of Sun hardware, but would rather not d

why my snmpd didn't work well?

2005-06-06 Thread nauhiyux xu
Dear Robert Story,    Thank you for your help first.But there is still a problem . #./configure  --prefix=/var/snmp  --disable-shared --enable-static #make #make install when I start snmpd #./snmpd -c ./snmpd.conf and then #./snmpwalk -c public -v1 10.214.17.80 1   (10.214.17.80 is the local

problem cross-compiling net-snmp

2005-06-06 Thread Harold J. Ship
Hello I'm trying to cross-compile net-snmp version 5.2.1. I'm using GCC version 2.95.3 with host=arm-linux and build=i386-linux-gnu. When I try to run configure, I receive the following warning (and net-snmp does not compile): configure: WARNING: net/route.h: present but cannot be compiled con

Using Net SNMP to log to Syslog

2005-06-06 Thread Rose, Paul D
Title: Using Net SNMP to log to Syslog Dear Dave, At present our firewall regulations do not permit the sending of snmp traps through the network,however the server I wish to monitor Has a syslog server process . How can I configure the agent to send to syslog rather than send a trap. Do

Re: problem passing oid to a function

2005-06-06 Thread Dave Shield
On Mon, 2005-06-06 at 12:07, Alaios wrote: > Hi .. .i am trying to pass oid as a parameter to a > function.. > myfunction(oid *myoid){ > size_t length_myoid= sizeof(myoid)/sizeof(oid) Nope. That will take the size of the OID *pointer*, not the full array. You need to pass the length of the arr

problem passing oid to a function

2005-06-06 Thread Alaios
Hi .. .i am trying to pass oid as a parameter to a function.. int main(int argc,char **argv){ oid myoid[]={1.3.6.8.9}; myfunction(myoid); } myfunction(oid *myoid){ size_t length_myoid= sizeof(myoid)/sizeof(oid) //seems to work// printf("%d" \n",myoid[1]); //prints correctly the second val

Re: merging cach_handler handler arg passing

2005-06-06 Thread Dave Shield
On Fri, 2005-06-03 at 20:40, Robert Story wrote: > I just noticed that you added 4 pointers to the cache_handler structure > for passing handler args to the load routine. This does almost the exact > same thing as the cache hint stuff I added in 5.2. > I'd like to see if we can't agree on a mergin

Re: ip address + session.peername

2005-06-06 Thread Dave Shield
On Mon, 2005-06-06 at 09:37, Alaios wrote: > Hi... do u know if it is possible to use ip address > instead of hostname for the session.peername? It should be, yes. Suck it and See. Dave --- This SF.Net email is sponsored by: NEC IT Guy Games.

Re: Cache for subtree, is it possible?

2005-06-06 Thread Dave Shield
On Fri, 2005-06-03 at 14:20, Ivanov Oleg wrote: > I have a few tables at node .1.3.6.1.4.1.xxx.1 Presumably each of these tables are registered separately? > I want to inject cache handler at subtree > .1.3.6.1.4.1.xxx.1, to get data for all this subtree before handlers > of

ip address + session.peername

2005-06-06 Thread Alaios
Hi... do u know if it is possible to use ip address instead of hostname for the session.peername? my code now is session.peername="localhost" Is it possible to do sth like that? session.peername="192.168.64.10" Thx a lot __ Discover Yahoo! Get

RE: lmSensors on Sun hardware

2005-06-06 Thread Bruce Shaw
I've been working on it somewhat. I'm presently trying to incorporate a wider range of sesnors available on the LM75 and other chipsets from code originally for FreeBSD. Let's combine our efforts. I'm going to be offline Monday and Tuesday but I can look at it after that. One problem with the m