Re: monitoring software raid...

2005-08-12 Thread Richard Green
On Sat, 13 Aug 2005 09:29 am, Robert Story wrote: > On Wed, 10 Aug 2005 09:58:53 +1000 Richard wrote: > RG> Is there a way to obtain software RAID status for linux kernel using > SNMP, RG> roughly equivalent to cat /proc/mdstat, to see the operational > status (not RG> just existance) of each /dev/

RE: how to specify source IP address / interface when sending traps (with Solaris IP multipathing )

2005-08-12 Thread Russell Bell
What we've ended up doing is changing get_myaddr() in snmplib/system.c which works; the primary IP address (the address returned by gethostbyname) is sent in the SNMP pdu. [Rob, I've sent you the changed system.c] The existing code was clearly incomplete, per the comment: /* XXX What if we hav

Re: compile error with cygwin on net-snmp 5.1.3.1

2005-08-12 Thread Alex Burger
Hi. taner memet ali wrote: hi, i'm a complete newbie to net-snmp. i try to compile it since yesterday but there is always the same error: make: *** No rule to make target 'winservicerc.lo', needed by 'libnetsnmp.la' . Stop. make[1]: Leavingdirectory '/cygdrive/d/net-snmp/snmplib' make: ***

Re: net-snmp-5.2.1.2 Fails to Compile HP-UX 11i GCC-4.0.1

2005-08-12 Thread Robert Story
On Wed, 10 Aug 2005 10:04:34 -0700 Patrick wrote: BP> Results of that is: BP> BP> /usr/include/sys/socketvar.h:495:extern struct sotimeq sotimeqhash[]; BP> /usr/include/sys/socketvar.h:498:struct sotimeq { BP> /usr/include/sys/socketvar.h:499: struct sotimeq *sotimeq_next; BP> /usr/include/

Re: Net-snmp

2005-08-12 Thread Robert Story
On Thu, 28 Jul 2005 17:33:25 +0200 Bongani wrote: BM> Hi guys. I have a problem when monitoring processes with net-snmp. I've BM> set snmpdconf as follows BM> proc runmqlsr BM> proc amqmqzxma0 BM> proc tnslsnr BM> proc ora_pmon_devmint BM> proc MINTTEST BM> The runmqlsr,amqmqzxma0 and ora_pmon

Re: rmon agent -- or the beginnings of one

2005-08-12 Thread Robert Story
On Mon, 1 Aug 2005 17:01:57 -0400 Mordechai wrote: MTA> I started an RMON agent a while back, then let it languish. It's MTA> currently pre-alpha at best. Figure I'd toss it out to the community MTA> in case anyone has interest. You didn't mention any license for the code.. If it's not bsd-like

Re: monitoring software raid...

2005-08-12 Thread Robert Story
On Wed, 10 Aug 2005 09:58:53 +1000 Richard wrote: RG> Is there a way to obtain software RAID status for linux kernel using SNMP, RG> roughly equivalent to cat /proc/mdstat, to see the operational status (not RG> just existance) of each /dev/md* (CONFIG_BLK_DEV_MD) RG> RG> Or do I have to write m

Re: Table Iterator architecture question

2005-08-12 Thread Robert Story
On Tue, 09 Aug 2005 14:30:20 -0400 Mike wrote: MV> That is, for every iteration through the table rows, the entire row is MV> copied into the agent using snmp_set_var_value; and the entire table is MV> iterated over before the 'handler' method is called and the requested MV> variable is returned

Re: Snmp issue when changing java

2005-08-12 Thread Robert Story
On Tue, 9 Aug 2005 11:17:01 -0400 Javier wrote: JT> I have net-snmp versions 5.2 and 5.2.1 on my fedora core 2 machines. JT> I recently changed java from 1.4.2_03 to 1.4.2_08. After I did this I JT> started to see the below error: JT> test040 11:19:06 snmpd[304]: Cannot find module (IP-MIB): At li

Re: how to specify source IP address / interface when sending traps (with Solaris IP multipathing )

2005-08-12 Thread Robert Story
On Tue, 9 Aug 2005 18:04:06 +1000 Russell wrote: RB> The problem that we are facing is that we are running in a Solaris IP RB> multipathing network configuration, eri0 and qfe0 being the physical RB> interfaces, and qfe0:1 being the floating IP address. The traps being RB> sent by snmpd are arriv

Re: Get single value from table

2005-08-12 Thread Robert Story
On Mon, 8 Aug 2005 10:34:38 -0700 Brian wrote: BH> $ snmpget -c public -v2c hostname userTable.userEntry.username."brian" BH> userTable.userEntry.username.brian: Unknown Object Identifier (Index BH> out of range: brian (username)) Your shell is eating the quotes.. try userEntry.username

Re: What am I missing (traps/notifications)

2005-08-12 Thread Robert Story
On Fri, 12 Aug 2005 15:00:51 -0400 Ben wrote: BZ> I guess I'm narrowing down the problem (seems as though the agent can't BZ> find these MIBS) but are they needed for notifcations? And why can't it BZ> use the 192.168.0.x IP address to send traps? MIBs aren't needed. BZ> > > snmpd: create_trap_se

Re: Debugging illegal instruction in v5.1.1 when sending traps

2005-08-12 Thread Robert Story
On Thu, 11 Aug 2005 11:30:27 -0400 [EMAIL PROTECTED] wrote: CRC> the status line says, "Program stopped at CRC> 0x1007e668", the function list (I think) is empty, and the Stack window CRC> has one line: "??". This means that it is too late, the stack is hosed. You need to find a way to reliably re

Re: table_array core dump (V 5.0.9)

2005-08-12 Thread Robert Story
On Thu, 11 Aug 2005 12:01:41 -0700 Geo wrote: GG> helper:table: SET_REQUEST for OID: iso.3.6.1.4.1.42.2.2.4.4.1.2.1.1.2 GG> type=4(04), value=STRING: "test" GG> helper:table: oid indexes not complete: GG> iso.3.6.1.4.1.42.2.2.4.4.1.2.1.1.2 GG> handler:returned: handler table returned 0 GG> resul

Re: Threading and Net-SNMP

2005-08-12 Thread Robert Story
On Thu, 11 Aug 2005 16:47:35 -0400 [EMAIL PROTECTED] wrote: CRC> I'm still having trouble finding my illegal instruction error and I've CRC> gotten to thinking about threads. I have a multi-threaded program that CRC> sends traps from one thread and acts as a sub-agent in another thread. CRC> Trap

Re: get response variable list handling?

2005-08-12 Thread Robert Story
On Wed, 10 Aug 2005 09:45:13 -0700 (PDT) shahram wrote: SAD> I took a look at the code and it does have a retry SAD> clause for the case as it find outs a variable SAD> is not in the agent. SAD> SAD> I wanted to know if this is specific to net-snmp or SAD> snmpget. It is net-snmp specific. SAD>

Re: What am I missing (traps/notifications)

2005-08-12 Thread Gary Clark
Ben Mate, Try and read the FAQ its excellent to get started on this. MIBS=all MIBDIRS=/usr/local/share/snmp/mibs Have a wee' browse at the file /net-snmp-5.1.2/agent/mibgroup/examples/notification.c it was useful to me. cheers, Garyc - Original Message - From: "Ben Z" <[EMAIL PROTECTED

snmptrapd v2c notifications - inform acknowledgements not being r ecognized

2005-08-12 Thread Timothy Tierney
I am using win32 version 5.1.3 . I have equipment with a 3rd party agent sending both v2c trap and inform notifications. The informs do not seem to be acknowledged correctly. Even though snmptrapd is sending a response the agent is going through its full set of retries. Is there any configurati

Re: What am I missing (traps/notifications)

2005-08-12 Thread Ben Z
I guess I'm narrowing down the problem (seems as though the agent can't find these MIBS) but are they needed for notifcations? And why can't it use the 192.168.0.x IP address to send traps? Thanks, Ben Z On Fri, 2005-08-12 at 13:55, Ben Z wrote: > My mistake... > > I rewrote that snmpd.conf fro

Re: What am I missing (traps/notifications)

2005-08-12 Thread Ben Z
My mistake... I rewrote that snmpd.conf from memory, so don't compare the error messages from the log to what's acutally there :D (I also have an "informsink" line in the conf file too apparently) BZ On Fri, 2005-08-12 at 13:44, Ben Z wrote: > Hi all; > > > Sorry about that. Its net-snmp 5.2.1

Re: What am I missing (traps/notifications)

2005-08-12 Thread Ben Z
Hi all; Sorry about that. Its net-snmp 5.2.1. My snmpd.conf is very simple: sysdescription "Example description" syscontact "[EMAIL PROTECTED]" syslocation "exampleNetwork" rocommunity "public" trapcommunity "public" trapsink "192.168.0.x public" trap2sink "192.168.0.x public" authtrapenable 1

Re: Threading and Net-SNMP

2005-08-12 Thread Vili Germic
Hi, I'm using SINGLE SESSION API (snmp_sess_opnen, snmp_sess_send,...) and standard posix threads and mutex locking in my multithreaded app for sending SNMP notifications. Everything works FINE for SENDING TRAPS and INFORMS! But, I'm having huge problem with handling snmp inform RESPONSES! Cal

Re: Threading and Net-SNMP

2005-08-12 Thread Gary Clark
what I was told is that Net-SNMP is not thread safe. So be careful. Is this a Red-Hat 9 system? Cheers, Garyc - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, August 11, 2005 3:47 PM Subject: Threading and Net-SNMP > I'm still having trouble finding my illegal instruc

get response variable list handling?

2005-08-12 Thread shahram amini-didani
Hi, When snmpget (win32/bin/release/snmpget.exe) does a get operation for multiple variables, it does retry over the variables if some of the variables do not get returned from agent successfully, i.e no such instance, or other errors. I took a look at the code and it does have a retry clause