Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
So, it seems that I have to use the attributes range_subid and range_ubound of the netsnmp_handler_registration structure when I register a region of my table to the master agent. I've tested the following case: App1: oid genServerTableOid[] = { 1, 3, 6, 1, 4, 1, 9, 1, 1, 1, 2 }; si

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Dave Shield
On 05/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > So, it seems that I have to use the attributes range_subid and range_ubound > of the netsnmp_handler_registration structure when I register a region of my > table to the master agent. Yes. >I thought that withe range Oi

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
Hi, Thanks Dave. What I've done now is: { // Declare the top Oid for my table oid genServerTableOid[] = { 1, 3, 6, 1, 4, 1, 9, 1, 1, 1 }; size_t genServerTableOidLen = OID_LENGTH(genServerTableOid); // Get an unique index from the master agent u_long allocatedIndex = register_int_i

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Dave Shield
On 05/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > Thanks Dave. What I've done now is: I'm sorry - this code is meaningless to me. You're listing assorted numeric OIDs, but I have no idea what MIB objects they refer to. I'm pretty sure that they aren't correct, since: > // Declare the top

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
Sorry Dave, but I give you my MIB in previous mails; I give you my MIB again as it would make things clearer. Concerning range_subid, there was a mistake in the code I give (error on copy/paste)... sorry... My table is defined something like that: genRoot (9) genTestRoot (1)

FW: Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
Sorry again, the are mistakes in the code I give you. Here is the correct one. Sorry Dave, but I give you my MIB in previous mails; I give you my MIB again as it would make things clearer. Concerning range_subid, there was a mistake in the code I give (error on copy/paste)... sorry... My

Re: Make error on hpux 11.00

2006-09-05 Thread [EMAIL PROTECTED]
Hi, I have installed net-snmp 5.3.1 but no builds fine for me on HP-UX 11.00.I have the same net-snmp 5.3.0.1 problems. So i have downloaded the official patches: 1)5.3.1: 8 byte IpAddress value for 64bit non-linux systems 2)5.3.1 SNMP.pm gettable() patch 3)5.3.1: disabling agentX breaks snmptra

Doing Snmp Get on Table with 2 index columns

2006-09-05 Thread Amit Gupta
Hi, I have implemented a table using NetSnmp toolkit that is indexed by two values - one integer value(componentType) and one string(componentId). I am able to perform an snmpwalk and snmpgetnext successfully, but when I perform an snmpget, I am unable to retrieve the value of the parameter.  

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Dave Shield
On 05/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > Sorry Dave, but I give you my MIB in previous mails; Err... no. Not that I can see. I'd checked back through this thread to make sure, before my previous reply. > My table is defined something like that: > genRoot (9) > genTestRo

RE: Doing Snmp Get on Table with 2 index columns

2006-09-05 Thread Pamidipati Suresh-G20238
Title: Message Hi,   Try with the following command with OID having backslash (\) before quotes.   snmpget -c public localhost .1.3.6.1.4.1.303.3.3.42.6.3.3.1.3.1.\"PNU-1\"   Regards, Suresh.   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

AGENTX via tcp socket

2006-09-05 Thread Chino Aureus
Hi All, Is it possible for my subagent (AGENTX) to connect to the master agent via tcp socket ?  What should I set on my snmpd.conf?  How about on the initialization of the subagent? Many thanks :) Chino - Using Tomcat but n

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
I think I'm totally confused about what I have to register (and I fail to understand the example in RFC 2741 - the ifTable) When I do an snmpwalk on my table (snmpwalk GEN-MONITORING-MIB::genServerTable), I get GEN-MONITORING-MIB::genServerName.1.2.2, which is not what I'm expecting. My underst

Re: AGENTX via tcp socket

2006-09-05 Thread Thomas Anders
Chino Aureus wrote: > Is it possible for my subagent (AGENTX) to connect to the master agent via > tcp socket ? What should > I set on my snmpd.conf? How about on the initialization of the subagent? See the description of agentXSocket in the snmpd.conf(5) manual page (aka RTFM): http://www.ne

Re: Make error on hpux 11.00

2006-09-05 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > I have installed net-snmp 5.3.1 but no builds fine for me on HP-UX 11.00.I > have the same net-snmp 5.3.0.1 problems. What exact errors do you get for a clean build with 5.3.1? What are your system/compiler details and configure options? Have you tried on any other HP-U

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Dave Shield
On 05/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > When I do an snmpwalk on my table (snmpwalk > GEN-MONITORING-MIB::genServerTable), I get > GEN-MONITORING-MIB::genServerName.1.2.2, which is not what I'm expecting. Well, I did say you're embarking on uncharted territory. It won't be too sur

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
What is nsRegistryTable? I look in the source code of net-snmp and I do not find any occurence of nsRegistryTable. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: multiple Sub-agents managing the same tabl

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Dave Shield
On 05/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > What is nsRegistryTable? I look in the source code of net-snmp and I do not > find any occurence of nsRegistryTable. My apologies. It's actually the 'nsMibRegistry' group (containing the 'nsModuleTable'). It lists all the MIB object that h

Re: Make error on hpux 11.00

2006-09-05 Thread [EMAIL PROTECTED]
Hi Thomas, Now i try to install the net-snmp v5.3.1. The system is: HP-UX B.11.00 U 9000/800 670319382 unlimited-user license. The compiler is: HP aCC. I run configure with these options: >./configure --with-cc=aCC --with-libs=-lnm >--prefix=/users/cmt/netsnmp/net-snmp-5.3.1/ Makefiles are ge

Re: Make error on hpux 11.00

2006-09-05 Thread Thomas Anders
[EMAIL PROTECTED] wrote: > 3) aCC: /usr/ccs/bin/ld: Unsatisfied symbols: > Exit (code) > argvrestart (data) > argvrestartp (data) > argvrestartname (data) > *** Error exit code 1 Is there a particular reason for compiling with a C++ compiler? I strongly recommend to use a C compiler (eithe

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
At the moment, when I register my first application (App1), it is now well registered and an snmpwalk on my table gives me now the values I expect: GEN-MONITORING-MIB::genServerName.1 = STRING: "Test1" GEN-MONITORING-MIB::genServerProductName.1 = STRING: "Test2" GEN-MONITORING-MIB::genServerHostna

Re: Make error on hpux 11.00

2006-09-05 Thread [EMAIL PROTECTED]
Thomas, if i run configure without --with-cc=aCC it use the cc compiler.But makefile generated are empty(size 0). Unfortunately i can't install gcc on this machine. Thanks > Da: Thomas Anders <[EMAIL PROTECTED]> > Data: Tue, 05 Sep 2006 15:03:12 +0200 > A: "[EMAIL PROTECTED]" <[EMAIL PROTECTED

Open-Source Alert Notification?

2006-09-05 Thread snmpinterest
Greetings. Does anyone know of an open-source alert notification system? We are adopting a new SNMP-based network monitoring system that is designed to send out *one* alert whenever a device has problems; it is made to interface with an alert notification system that can use that alert to init

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
Me again... To see if I reproduce the same problem with the latest version of net-snmp, I try my sample with net-snmp v5.3.1 (instead of v.5.0.11). The problems I'm facing now are: - the index retrieved with register_int_index is always -1 - I get a long list of error messages 'registering pdu f

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Dave Shield
On 05/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote: > To see if I reproduce the same problem with the latest version of > net-snmp, I try my sample with net-snmp v5.3.1 (instead of v.5.0.11). Very sensible. > The problems I'm facing now are: > - the index retrieved with register_int_index is a

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Thomas Anders
Arnaud BODENAN wrote: > - I get a long list of error messages 'registering pdu failed: 263!' At least three of them should be related to the (implicit) registration of the three root oids (.1, .2, .3) which the master agent already has registered for itself. Ignore those. Here's a log snippet from

RE: monitoring freeradius with net-snmp and smux

2006-09-05 Thread Andy Ford
Title: RE: monitoring freeradius with net-snmp and smux Thanks for the follow up Irwin. I seem to be getting somewhere now. I've managed to install net-snmp and freeradius on my Gentoo installation (I couldn't get it to work on Solaris). When I start radiusd -X I get the following message

Re: monitoring freeradius with net-snmp and smux

2006-09-05 Thread Thomas Anders
Andy Ford wrote: > I've managed to install net-snmp and freeradius on my Gentoo installation (I > couldn't get it to work on Solaris). > > When I start radiusd -X I get the following message at the end of the debug... > > debug output --- > Module: Instan