How can I extend a MIB with a subagentX

2006-07-18 Thread Arnaud BODENAN
Hi, I want to use SNMP to monitor our C++ applications deployed under Sun Solaris 5.8, IBM AIX 5.2, Windows (2000, XP) and Linux (RedHat). I use net-snmp 5.0.11. With the help of tutorials and FAQS (, I have tested master agentX/sub agentX on a specific port (I made the test on Solaris 5.8,

Re: How can I extend a MIB with a subagentX

2006-07-18 Thread Arnaud BODENAN
rom: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: How can I extend a MIB with a subagentX >Date: Tue, 18 Jul 2006 16:16:21 +0100 > >On 18/07/06, Arnaud BODENAN <[E

Re: How can I extend a MIB with a subagentX

2006-07-18 Thread Arnaud BODENAN
on this dynamic metric Thanks. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: How can I extend a MIB with a subagentX >Date: Tue, 18 Jul 2006 17:00:06 +0100 &

Re: How can I extend a MIB with a subagentX

2006-08-23 Thread Arnaud BODENAN
cation1 on database DB3 (Fourth instance) All these servers are subagent (AgentX). If the manager executes a get of 'State' for the first instance, how does the master agent ask the correct subagent about the metric? >From: "Dave Shield" <[EMAIL PROTECTED]> >To

FW: Re: How can I extend a MIB with a subagentX

2006-08-23 Thread Arnaud BODENAN
at can be added dynamically by a sub agent? Is is feasible? Thanks for your help. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: How can I extend a MIB with a subagentX >Date: Wed, 23 Aug 2006 14:50:16 +0200 >

Re: FW: Re: How can I extend a MIB with a subagentX

2006-08-24 Thread Arnaud BODENAN
he file is NOT deleted Do I have to do something specific in the code at the shutdown of the subagent? >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: FW: Re: How

Re: FW: Re: How can I extend a MIB with a subagentX

2006-08-24 Thread Arnaud BODENAN
ICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, "/home/arnboden/snmp/test/masterFile"); >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: FW: Re: How can I extend a MIB

Unix socket not deleted in a config master/subagent

2006-08-25 Thread Arnaud BODENAN
a bit confused with this parameter (agentxsocket). When must I use: - a named socket? - an address? For security reasons, is it preferable to use named socket or address? Thanks. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Sub

Re: Unix socket not deleted in a config master/subagent

2006-08-25 Thread Arnaud BODENAN
ction SnmpdShutDown, and launch the snmpd with the log activated. I have the following messages : Received TERM or STOP signal... shutting down... but I don't have my specific message although the SIGTERM has been detected. >From: "Dave Shield" <[EMAIL PROTECTED]>

Use of traps to send application errors

2006-08-28 Thread Arnaud BODENAN
Hi, I plan to use trap mechanism to send application errors to the monitoring console. I declare the trap OID in my MIB to manage all the application errors. Is it a good choice to use traps for my application errors? Should i use notification instead? What is the maximun length of the trap m

Representation of a float/double in the MIB

2006-08-30 Thread Arnaud BODENAN
I plan to use an Unsigned32 to manage float/double (I'll define a fixed precision of 3, and i will multiply each value by 10 ^ 3) in the MIB. As Unsigned32 may not be enough, can I use Counter64 instead of unsigned32? Thanks. _ Exp

Re: FW: Re: How can I extend a MIB with a subagentX

2006-08-31 Thread Arnaud BODENAN
ster my table? Is there a 'easier' way to register a table? I do not register a function to get the value of an entry in my table. Thanks. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists

Re: FW: Re: How can I extend a MIB with a subagentX

2006-08-31 Thread Arnaud BODENAN
ment of the index of a table was managed by the net-snmp API. Must I manage it myself? Thanks for your help. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: FW: Re: How can I extend a MIB with a subagentX >Date: Thu

Re: FW: Re: How can I extend a MIB with a subagentX

2006-08-31 Thread Arnaud BODENAN
quot;Test3")); netsnmp_table_dataset_add_row(genServerTable, row); } If index is managed by net-snmp, why do I have to use netsnmp_table_row_add_index with the value ind manually managed in my sample? >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN&

Re: FW: Re: How can I extend a MIB with a subagentX

2006-08-31 Thread Arnaud BODENAN
work? indeed, I check the code of data_set.c and I've seen nothing wrong in my code explaining my error message. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: FW

Re: FW: Re: How can I extend a MIB with a subagentX

2006-09-01 Thread Arnaud BODENAN
p. I've got no idea how to solve it. Arnaud >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: FW: Re: How can I extend a MIB with a subagentX >Date: Thu, 31 Aug 2006 21:27:42 +0200 > >OK, but this means tha

Re: FW: Re: How can I extend a MIB with a subagentX

2006-09-01 Thread Arnaud BODENAN
ferences >between my code and the code in the sample. > >I debug my sample on Solaris, and the problem comes from my row >=> the row->index_oid is NULL > >I don't know which API to call to set this value > >Thanks for your help. I've got no ide

Initialization of a table:some columns are not created

2006-09-01 Thread Arnaud BODENAN
Hi, I've got another problem with the initialisation of my table. In the MIB, my table is declared as following: genServerTable OBJECT-TYPE SYNTAX SEQUENCE OF GenServerEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A Tabl

RE: Initialization of a table:some columns are not created

2006-09-01 Thread Arnaud BODENAN
:genServerHostname.1 = STRING: "Test3" KGEN-MONITORING-MIB::genServerPID.1 = Gauge32: 1500 Concerning the management of the index in a table, I would like to know if there was an automatic way of incrementing them if the index is numeric (like in SQL databases) Thanks. >From: "A

multiple Sub-agents managing the same table

2006-09-01 Thread Arnaud BODENAN
Hi, I have a generic MIB composed with: - table of Servers - table of metrics exposed by a server (generic table: thanks Dave;o) ) I want that all my applications share this MIB and register in the same MIB. Question 1: Is it feasible? Question 2: When my application starts, it initializes the

RE: multiple Sub-agents managing the same table

2006-09-02 Thread Arnaud BODENAN
my approach (share the same table by several applications) is possible or not. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: multiple Sub-agents managing the same table >Date: Fri, 01 Sep 2006 17:15:45 +0200 > >Hi

Re: Initialization of a table:some columns are not created

2006-09-04 Thread Arnaud BODENAN
Agent Extensibility (AgentX) Protocol version 1), it should be possible to share the same table with multiple sub agents, but I don't know how to do it with net-snmp. Arnaud. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTE

Re: multiple Sub-agents managing the same table

2006-09-04 Thread Arnaud BODENAN
EN-MONITORING-MIB::genServerPID.2 = Gauge32: 1500 I check netsnmp_table_dataset_add_row, but it returns no value (void). Moreover, when I execute the second binary, I have no error message so it seems to work ok. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arn

Re: multiple Sub-agents managing the same table

2006-09-04 Thread Arnaud BODENAN
Thanks. >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 table >Date: Mon, 4 Sep 2006 13:56:07 +0100 > >

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
-MIB::genServerTable.2.1.3.1 I never get an error from the function netsnmp_register_table_data_set. If somebody already tries to use this mechanism, it would be nice to have explanations. Thanks in advance for the help you provided to me. Arnaud. >From: "Dave Shield" <[EMAIL

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
cause of the range_ubound (I'm a little bit confused with that parameter). If I understand you, I should set range_ubound to 5 (I have five columns in my row) ? I'm not really sure... >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EM

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
erverAllocatedOidLen, HANDLER_CAN_RONLY); // Set the range_subid to the first column of the row handlerServerTable->range_subid = genServerAllocatedOidLen; // set the range_ubound handlerServerTable->range_ubound = 5; } From: "Dave Shield" <[EMAIL PROTECTED]>

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

2006-09-05 Thread Arnaud BODENAN
>range_ubound = 5; } 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 table Date: Tue, 5 Sep 2006 10:07:14 +0100 On 05/09/06, Arnaud BODENA

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
, 4, index } // genServerHostname { 1, 3, 6, 1, 4, 1, 9, 1, 1, 1, 5, index } // genServerPID 3) I create a row using the index retrieved in step 1 and register it to the master agent Is it right? or am I still completely wrong? >From: "Dave Shield" <[EMAIL PROTECTED]>

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 >Subjec

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
; GEN-MONITORING-MIB::genServerHostname.1 = STRING: "Test3" GEN-MONITORING-MIB::genServerPID.1 = Gauge32: 1500 But, now, I'm not able to register a new server. (I will debug my second server to see what's going on) >From: "Dave Shield" <[EMAIL PROTECTED]> &g

Re: multiple Sub-agents managing the same table

2006-09-05 Thread Arnaud BODENAN
top_server); snmp_log(LOG_INFO,"App1 is up and running.\n"); sendSpecificTrap(); while(keep_running) { agent_check_and_process(1); } snmp_shutdown("App1"); SOCK_CLEANUP; return 0; } Any suggestions? Thanks in

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
no more registered. I also do a test of 'normal registering' of my table (no use of range_subid and range_ubound) with the same error. I will look first at the samples and the NEWS file to see the changes. Thanks. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
register a region of my MIB (previous code), I receive an error from the function netsnmp_register_table_data_set: registering pdu failed: 263! >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: multiple Sub-agents mana

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
0) trace: snmp_api.c, 5423: sess_read: not reading 3 (fdset ffbfeb40 set 0) registering pdu failed: 263! trace: callback.c, 330: callback: END calling callbacks for maj=1 min=1 (1 called) trace: callback.c, 150: 9:callback:lock: unlocked (APP,null) Index found=1. App1 is up and running. >

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
t-snmp v5.3.1 (registering pdu failed: 263!) >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: multiple Sub-agents managing the same table >Date: Wed, 06 Sep 2006 11:33:32 +0200 > >I have activated debug traces in my

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
easing: GEN-MONITORING-MIB::genServerIndex.1.5.1 >= GEN-MONITORING-MIB::genServerIndex.1.2.1 which is totally in contradiction with the debug informations. At the moment, I don't know if the problem comes from the creation of the row/registration the row with the master agent. I'm st

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
imeout."".12.1.3.6.1.4.1.9.1.1.1.3.2.127 = INTEGER: 0 NET-SNMP-AGENT-MIB::nsModuleTimeout."".12.1.3.6.1.4.1.9.1.1.1.4.1.127 = INTEGER: 0 NET-SNMP-AGENT-MIB::nsModuleTimeout."".12.1.3.6.1.4.1.9.1.1.1.4.2.127 = INTEGER: 0 NET-SNMP-AGENT-MIB::nsMo

Re: multiple Sub-agents managing the same table

2006-09-06 Thread Arnaud BODENAN
rnaud. >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 table >Date: Wed, 6 Sep 2006 16:00:51 +0100 > >On 06/09/06, Arnaud B

RE: netsnmp_table_helper_add_index lib

2006-09-07 Thread Arnaud BODENAN
This is a function helper, so it is in the library libnetsnmphelpers.so. >From: "Vlad Shafransky" <[EMAIL PROTECTED]> >To: "Dave Shield" <[EMAIL PROTECTED]> >CC: net-snmp-users >Subject: netsnmp_table_helper_add_index lib >Date: Thu, 7 Sep 2006 18:07:33 +0200 > >Hello everybody!!! >Can anybody t

Re: multiple Sub-agents managing the same table

2006-09-07 Thread Arnaud BODENAN
Would it be possible to use contextName of the registrationHandler (different contextName per application) instead of the range_subid/range_ubound? Arnaud. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: multiple Sub

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
Test3", strlen("Test3")); u_long pid = 1500; netsnmp_set_row_column(row, 5, ASN_INTEGER, (const char *)&pid, sizeof(pid)); netsnmp_table_dataset_add_row(genServerTable, row); } To use a ContextName, must I add something: - in my code? - in the MIB? - in the configuration file? Thanks. >From: &q

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
try without success: - snmpwalk GEN-MONITORING-MIB::\"TestContext1\" - snmpwalk GEN-MONITORING-MIB::riskServerTable - snmpwalk GEN-MONITORING-MIB::riskServerTable.\"TestContext1\" >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMA

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
I find the option -n, and I try this without success: snmpwalk -n TestContext1 GEN-MONITORING-MIB::riskServerTable snmpwalk -n "TestContext1" GEN-MONITORING-MIB::riskServerTable snmpwalk -n \"TestContext1\" GEN-MONITORING-MIB::riskServerTable >From: "Arnaud BODENAN&q

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
er a table or a scalar? Thanks for your help. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: multiple Sub-agents managing the same table >Date: Fri, 08 Sep 2006 10:38:31 +0200 > >I find the option -n,

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
Unfortunately, the context approach seems to be relevant only for the version 3 of snmp, and not for version 2c. Am I right? If I can't use contextName, I have to use range_subid and range_ubound. No workaround exist? >From: "Arnaud BODENAN" <[EMAIL PROTECTED]

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
And do I have to add the parameter com2sec for snmpd and for each subagent? >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

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
hat do you think? Arnaud. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: multiple Sub-agents managing the same table >Date: Wed, 06 Sep 2006 17:35:52 +0200 > >OK dave and thanks a lot for all the tim

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
as experienced as you on net-snmp. Arnaud. >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 table >Date: Fri, 8 Sep 200

Re: multiple Sub-agents managing the same table

2006-09-08 Thread Arnaud BODENAN
e their knowledge). My purpose is to contribute to this project and not keep my modifications for me. Tell me what you think about this. Arnaud. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.so

How to update rows of a table programmatically

2006-09-09 Thread Arnaud BODENAN
Hi, I have several servers, exposing specific metrics, and sharing the same table. A specific thread responsible of the SNMP stuff will be started for each application, converting each application into a subagentX. Each application will register one row of the shared table (genServerTable) and

How to update rows of a table programmatically

2006-09-09 Thread Arnaud BODENAN
Hi, I have several servers, exposing specific metrics, and sharing the same table. A specific thread responsible of the SNMP stuff will be started for each application, converting each application into a subagentX. Each application will register one row of the shared table (genServerTable) and

Re: multiple Sub-agents managing the same table

2006-09-11 Thread Arnaud BODENAN
Hi Dave, OK for me. Will you be interested about my sample and my MIB? I can send it to you directly if you want. Arnaud. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >S

Master agent and distributed sub agents

2006-09-14 Thread Arnaud BODENAN
Hi, If we have several sub agents running on different machines: - is it possible to have only one master agent? how to achieve that? - or must we launch a master agent on each machine? Thanks. _ Don't just search. Find. Check out t

Modify a row in a table

2006-10-04 Thread Arnaud BODENAN
Hi, I have a table that i register at the beginning of my process, and i want to update the values of my rows programmatically (not with a SNMP SET). How can I achieve this? If I register each row in memory, will a call to netsnmp_set_row_column for the right row (retrieved from my structure i

Re: Modify a row in a table

2006-10-04 Thread Arnaud BODENAN
I use the netsnmp_table_data_set helper. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Modify a row in a table >Date: Wed, 4 Oct 2006 16:39:03 +0100 &

Error "No access configuration - dropping trap" with snmptrapd

2006-10-06 Thread Arnaud BODENAN
Hi, I have a subagentX which is sending traps (with the function sendv2trap) on the port 1500. I configure the snmpd.conf with: trapsink localhost public 1500 When I launch snmptrapd with net-snmp-5.0.11, I can see my traps But with net-snmp-v-5.3.1, I get the error message: "No access configu

Re: Error "No access configuration - dropping trap" with snmptrapd

2006-10-06 Thread Arnaud BODENAN
OK, thanks; now it works. In terms of security, what mechanisms do I have while using SNMP v2c ? >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Error &q

My process is blocked while sendin a trap

2006-10-10 Thread Arnaud BODENAN
Hi, I write a sample subagentX which is sending straps, by using the function send_v2trap. My subagentX is sending massively traps, and is blocked when sending the 281 trap. When I do a pstack on my process, I got this stack: fbfc068c send (8, 187d58, a8, 0) feffa8c0 _sess_async_send (bf0

Problems on AIX 5.3

2006-10-10 Thread Arnaud BODENAN
I compile net-snmp on AIX 5.3. When I try to launch snmpd on AIX 5.3, it fails. I activate the debug (-D ALL) on the snmpd and I get: No log handling enabled - turning on stderr logging trace: netsnmp_ds_set_boolean(): default_store.c, 205: netsnmp_ds_set_boolean: Setting LIB:6 = 1/True trace: ne

Re: Problems on AIX 5.3

2006-10-10 Thread Arnaud BODENAN
I get a core dump when I launch snmpd -f -Le I compile the libraries as dynamic libraries. I see in the readme.aix that this could be a problem. With net-snmp v5.3.1, is it mandatory to compile net-snmp libraries statically? >From: "Dave Shield" <[EMAIL PROTECTED]> &

Re: My process is blocked while sendin a trap

2006-10-10 Thread Arnaud BODENAN
... >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: My process is blocked while sendin a trap >Date: Tue, 10 Oct 2006 09:21:31 +0100 > >On 10/10/06, Arnaud B

Subagentx : how to define the path where MIBS are installed

2006-10-11 Thread Arnaud BODENAN
Hi, I create a subagentX and I set the Path for the MIBS using: netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_LIB_MIBDIRS, "/home/arnboden/snmp/mibs"); the directory /home/arnboden/snmp/mibs is empty and I wanting to know if an error was detected at the start of my subagent. Unfor

RE: Subagentx : how to define the path where MIBS are installed

2006-10-11 Thread Arnaud BODENAN
The function init_snmp is void function. How can I catch runtime errors arised in the function init_snmp? Is it possible? >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Subagentx : how to define the path where MIBS are

Re: My process is blocked while sendin a trap

2006-10-11 Thread Arnaud BODENAN
em is that we have multiple servers that can potentially send traps. I can correct this in one application (I have a counter in each application that forces a sleep each time 250 traps are sent), but I can't with multiple. >From: "Dave Shield" <[EMAIL PROTECTED]>

Re: Subagentx : how to define the path where MIBS are installed

2006-10-11 Thread Arnaud BODENAN
So I do this before init_agent and init_snmp (which seems to be responsible to parse all the mibs) >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Subagentx : ho

Re: Subagentx : how to define the path where MIBS are installed

2006-10-11 Thread Arnaud BODENAN
is too and force net-snmp to search only in one directory? >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Subagentx : how to define the path where MIBS are installed

Re: Subagentx : how to define the path where MIBS are installed

2006-10-11 Thread Arnaud BODENAN
OK, thanks. I'll try this tomorrow ;o) >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Subagentx : how to define the path where MIBS are installed >Date

Re: My process is blocked while sendin a trap

2006-10-11 Thread Arnaud BODENAN
This is very interesting... Concerning the two sessions: - they would be created in the same thread? - or there would be one thread managing the session for get/set..., and one thread managing traps? Is the session API thread safe? >From: "Dave Shield" <[EMAIL PROTECTED]> &

Re: My process is blocked while sendin a trap

2006-10-12 Thread Arnaud BODENAN
Sure, I understand that. I just try to figure out how difficult it would be to implement it myself. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: My process i

Re: My process is blocked while sendin a trap

2006-10-12 Thread Arnaud BODENAN
my code : int main() { init i = 0; while ( i < 5000 ) { sendTrap("Test"); } return 0; } where sendTrap pushed the message in a queue; the message is then processed by my monitoring thread which calls send_v2trap. >From: "Dave Shield" <[EMAIL PROTECTED]> >

Re: Subagentx : how to define the path where MIBS are installed

2006-10-13 Thread Arnaud BODENAN
still do a snmpwalk on the tables defined in my MIB which is not in the directory /home/arnboden/testMonitoring/etc. Thanks. Arnaud. >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: Subagentx : how to define the path where MI

Re: Subagentx : how to define the path where MIBS are installed

2006-10-13 Thread Arnaud BODENAN
plays me the right informations. Problably, I miss something again. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Subagentx : how to define the path where MI

Re: Subagentx : how to define the path where MIBS are installed

2006-10-13 Thread Arnaud BODENAN
Yes, you're right! Sorry, I should have understood that. Thank you. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Subagentx : how to define the path where

Re: Subagentx : how to define the path where MIBS are installed

2006-10-13 Thread Arnaud BODENAN
I have another question... Is it useful for an agent to know the path where the MIBS are installed? Does the agent behave differently if it loads the MIBS or not? >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: Suba

Re: Subagentx : how to define the path where MIBS are installed

2006-10-13 Thread Arnaud BODENAN
>From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Subagentx : how to define the path where MIBS are installed >Date: Fri, 13 Oct 2006 10:36:51 +0100 > >

Re: Problems on AIX 5.3

2006-10-13 Thread Arnaud BODENAN
At the moment, I'm trying to test my sample with purify to see what's going on >From: Thomas Anders <[EMAIL PROTECTED]> >To: Arnaud BODENAN <[EMAIL PROTECTED]> >Subject: Re: Problems on AIX 5.3 >Date: Thu, 12 Oct 2006 22:57:55 +0200 > >Arnaud BODENAN wrot

How to catch errors in init_snmp

2006-10-16 Thread Arnaud BODENAN
Hi, The function init_snmp is prototyped as a void function but can generate errors. Example: If I set an invalid address in the variable NETSNMP_DS_AGENT_X_SOCKET, an error is triggered in init_snmp: Error: Failed to connect to the agentx master agent (tcp:TEST_UNKONOWN_HOST:1450): Unknown ho

RE: How to catch errors in init_snmp

2006-10-17 Thread Arnaud BODENAN
The only work-around I found is to test the return code of the function register_int_index, which fails if it is unable to connect to the master agent. I would prefer to catch the error message displayed in the function subagent_open_master_session. This is not possible? >From: &quo

Re: How to catch errors in init_snmp + dynamic libraries issue under AIX 5.3

2006-10-21 Thread Arnaud BODENAN
d behaviour is identical to Sun Solaris or Linux. Arnaud. >From: "Dave Shield" <[EMAIL PROTECTED]> >To: "Arnaud BODENAN" <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: How to catch errors in init_snmp >Date: Fri, 20 Oct 2006 2

Re: How to catch errors in init_snmp + dynamic libraries issue underAIX 5.3

2006-10-21 Thread Arnaud BODENAN
I create the bug number 1581782 for the problem of catching errors in init_snmp >From: "Arnaud BODENAN" <[EMAIL PROTECTED]> >To: net-snmp-users@lists.sourceforge.net >Subject: Re: How to catch errors in init_snmp + dynamic libraries issue >underAIX 5.3 >Date:

Re: dynamic libraries issue under AIX 5.3

2006-10-23 Thread Arnaud BODENAN
We use the net-snmp version 5.3.1 >From: Thomas Anders <[EMAIL PROTECTED]> >Reply-To: net-snmp-users@lists.sourceforge.net >To: Arnaud BODENAN <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: dynamic libraries issue under AIX 5.3 >Date: S

Dynamic libraries under Windows

2006-10-25 Thread Arnaud BODENAN
Hi everybody, Does somebody succeed in making dynamic libraries of Net-snmp (5.3.1 for me) under Windows ? Arnaud. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/on

Re: Dynamic libraries under Windows

2006-10-26 Thread Arnaud BODENAN
Sorry for my lack of knowledge, but what is DLMOD ? Do you mean that the use of dynamic libraries under Windows will not work as dlmod is not supported? Arnaud. >From: Alex Burger <[EMAIL PROTECTED]> >To: Arnaud BODENAN <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourcef

Re: Dynamic libraries under Windows

2006-10-26 Thread Arnaud BODENAN
OK, that's a functionality I will not use so it should be ok to use dynamic libraries of net-snmp under Windows, right? No major problems ? >From: Thomas Anders <[EMAIL PROTECTED]> >Reply-To: net-snmp-users@lists.sourceforge.net >To: Arnaud BODENAN <[EMAIL PROTECTE

Re: Dynamic libraries under Windows

2006-10-26 Thread Arnaud BODENAN
er to deploy the servers with dynamic libraries. I want to know if it will be OK on Windows with net-snmp 5.3.1 compiled as dynamic libraries. Arnaud. >From: Alex Burger <[EMAIL PROTECTED]> >To: Arnaud BODENAN <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >S

Symbols clash with getopt and gettimeofday under Windows

2006-11-02 Thread Arnaud BODENAN
Hi, I have encountered a problem of symbols clash under Windows between our binary, which defines getopt and gettimeofday under Windows, and netsnmp. I resolved it by renaming the symbols getopt/gettimeofday in our binary. Could it be possible in the library net-snmp (to avoid clash with other

Use of Counter64

2006-11-03 Thread Arnaud BODENAN
I'm using net-snmp 5.3.1, and I want to use the type Counter64 (which is SNMP v2 feature) When I execute a "snmpwalk/snmpbulkwalk -v 2c" , I have the following error : Wrong Type (should be Gauge32 or Unsigned32): Counter64: 0 I realize I have the same behaviour with Unsigned32 (which also a SN

Re: Use of Counter64

2006-11-03 Thread Arnaud BODENAN
; >From: Thomas Anders <[EMAIL PROTECTED]> >Reply-To: net-snmp-users@lists.sourceforge.net >To: Arnaud BODENAN <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: Use of Counter64 >Date: Fri, 03 Nov 2006 14:01:55 +0100 > >Arnaud BODENAN w

Re: dynamic libraries issue under AIX 5.3

2006-11-03 Thread Arnaud BODENAN
=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x=x Hope this will help you. Arnaud. >From: Thomas Anders <[EMAIL PROTECTED]> >Reply-To: net-snmp-users@lists.sourceforge.net >To: Arnaud BODENAN <[EMAIL PROTECTED]> >CC: net-snmp-users@lists.sourceforge.net >Subject: Re: dynamic libraries issue

Monitoring client and management of SNMP tables and joins across multiple tables

2006-11-13 Thread Arnaud BODENAN
Hi, I define the four following tables in my MIB: -- The servers table -- monServerTable OBJECT-TYPE SYNTAX SEQUENCE OF MonServerEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A Table containing all servers running"

Compatibility between subagents using net-snmp 5.3.1 and the snmpd on Solaris 10

2006-12-05 Thread Arnaud BODENAN
Hi, I've tried to run my subagents (using net-snmp 5.3.1) under Solaris 10, and I have failed to make them communicate with the snmpd delivered with Solaris 10 (using net-snmp 5.0.9). I run snmpd (Solaris 10 net-snmp daemon) with my configuration file where i set : master agentx agentxsocket t