Re: Re: DISMAN-EVENT-MIB ?

2005-05-17 Thread 秦宇伟
Dear Mr.Dave and all: In the snmpd.conf I wrote the following rows: AgentSecName me Rouser me Monitor -u me ?r 12 ?o sysUpTime.0 “test the monitor” oaValueTable[0]>1 ( oaValueTable[0] is a integer-variable and I bound it with the MIB:OutOpticalPower. in the .

Re: SNMP Trap API required

2005-05-17 Thread Hugo Caçote
Hi, Why don't try to use the TrapReceiver perl module?? If you compile the net-snmp package with embedded perl support snmptrapd will execute a perl handler that will process the SNMP trap received. There is an example of the perl trap handler in the net-snmp distribution. Hopoe this helps, H

Maximum size of variable to bind to a trap

2005-05-17 Thread Fabio \"Salsa\" Durieux Lopes
What's the maximum size of a variable that's gonna be bound to a trap?? I ask this because I'm having a (another one) problem with my subagent. I select some events from my database and depending on some values I'll send a trap. Everything was working fine until the string which is attached t

hrStorageUsed disappeared

2005-05-17 Thread Christopher McGee
I'm running net-snmp 5.2.1_2 on FreeBSD 4.11 and hrStorageUsed is no longer in the list when doing an snmpwalk. Has anyone else experienced this? Any possible solutions to get it back? Chris --- This SF.Net email is sponsored by Oracle Space

Re: Bug reporting

2005-05-17 Thread Thomas Anders
[EMAIL PROTECTED] wrote: I'm running Solaris 2.8 Version 5.1.2. My NMS is polling a var which causes the net-snmp agent to spawn a "defunct" process. I'm persuing this with the NMS vendor to clarify what it is they poll. But clearly the net-snmp agent should not spawn a defunct process. I want to r

Bug reporting

2005-05-17 Thread rob-7704
I'm running Solaris 2.8 Version 5.1.2. My NMS is polling a var which causes the net-snmp agent to spawn a "defunct" process. I'm persuing this with the NMS vendor to clarify what it is they poll. But clearly the net-snmp agent should not spawn a defunct process. I want to report this as a bug. Can

Re: Ghost trap sent with sysTime sent when I send my v2Trap

2005-05-17 Thread Dave Shield
On Tue, 2005-05-17 at 16:18, Fabio "Salsa" Durieux Lopes wrote: > Problem is for every trap my agent sends there's another > one (of the same type) containing what I think to be > sysUpTime or maybe the time of the trap. And I'm not > explicitly sending this trap. Is this a separate trap packet,

Re: snmptrapd v2c and v3 no output

2005-05-17 Thread Alex Burger
Dave Shield wrote: On Fri, 2005-05-13 at 23:05, Alex Burger wrote: Net-SNMP could be change to allow either snmpTrapOID or snmpTrapOID.0, but I'm not sure if that is something that should be done. NO!! It Most Definitely Should Not! It trust that answers the question to your satisfaction, Alex :-

Re: snmpget problem with string index's in mssqlserver mib

2005-05-17 Thread Dave Shield
On Tue, 2005-05-17 at 16:04, John McCaskey wrote: > The mssqlserver mib was poorly (imho) designed and uses string index's > for pretty much everything. There's nothing inherently wrong with using string indexes. A number of the UCD-SNMP-MIB tables are being re-designed, and many of the re-writes

Ghost trap sent with sysTime sent when I send my v2Trap

2005-05-17 Thread Fabio \"Salsa\" Durieux Lopes
Hi! I new to NET-SNMP and I've made a subagent (using AgentX) to send some traps that I've defined. Problem is for every trap my agent sends there's another one (of the same type) containing what I think to be sysUpTime or maybe the time of the trap. And I'm not explicitly sendingh this trap. It

Re: snmpget problem with string index's in mssqlserver mib

2005-05-17 Thread John McCaskey
Dave Shield wrote: On Fri, 2005-05-13 at 22:33, John McCaskey wrote: I have a Win 2k server running SQL Server that has the SNMP Agent setup and the SQL Server mib installed. I can walk it as follows: [snip] But, if I try to get with either the long numeric oid, or the one with th

Re: Creating my own Net-SNMP binaries

2005-05-17 Thread Dave Shield
On Tue, 2005-05-17 at 15:21, mobby lin wrote: > I had used net-snmp source to build my Solaris net-snmp binary kit. > From the Readme.solaris document from www.net-snmp.org > > make install prefix=/usr/local/dist/usr/local \ > >exec_prefix=/usr/local/dist/usr/local > > cd /usr/local/di

Re: AW: Exec and extend (was Calculationg CPU usage using ssCpuRawIdle)

2005-05-17 Thread Dave Shield
On Wed, 2005-05-11 at 19:28, Mohr James wrote: > In the meantime I have been using the 'exec' form of this > and it is working out really nicely. I have noticed that > there are two instances of each entry: > > UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 > UCD-SNMP-MIB::extIndex.2 = INTEGER: 2 > UCD-SNM

Re: sysORTable

2005-05-17 Thread Dave Shield
On Thu, 2005-05-12 at 18:09, Budyanto Himawan wrote: > How does sysORTable get populated. There's an API call (a macro really) REGISTER_SYSOR_ENTRY which can be used to insert a sysORTable entry in either the main agent, or an AgentX subagent. See various modules under 'mibgroup/mibII' for exampl

SNMP Trap API required

2005-05-17 Thread mobby lin
I need to used snmp-trap function to receive some trap/information messages, then run a external command to process the messages.   I try to understand the source file of snmptrapd in the net-snmp 5.2.1. To me, this is a little complex to understand the whole coding. Specially I trace the snmptrapd

Re: snmptrapd v2c and v3 no output

2005-05-17 Thread Dave Shield
On Fri, 2005-05-13 at 23:05, Alex Burger wrote: > The first OID passed in an SNMP v2 trap is the uptime and the second is > SNMPv2-MIB::snmpTrapOID.0. In the packet you sent me, it is sending > SNMPv2-MIB::snmpTrapOID (without the trailing .0). > Net-SNMP could be change to allow either snmpTra

Re: snmpget problem with string index's in mssqlserver mib

2005-05-17 Thread Dave Shield
On Fri, 2005-05-13 at 22:33, John McCaskey wrote: > I have a Win 2k server running SQL Server that has the SNMP Agent setup > and the SQL Server mib installed. I can walk it as follows: [snip] > But, if I try to get with either the long numeric oid, or the one with > the string I get t

Re: snmpd down?

2005-05-17 Thread Dave Shield
On Thu, 2005-05-12 at 04:06, çåä wrote: > I am trying to incorporate a MIB module in the Agent. >But when I run the : > $./snmpd >the Agent can not run. >There is something wrong with the ââ module. > How can I find what is the matter? a) Check the snmp

Creating my own Net-SNMP binaries

2005-05-17 Thread mobby lin
I had used net-snmp source to build my Solaris net-snmp binary kit. Now I try to build a runtime binary kit from this kit in order to remote install to many net-snmp clients.   From the Readme.solaris document from www.net-snmp.org, ther are some guide as below   >Create an empty directory such as

Re: SNMP Agent configuration

2005-05-17 Thread Dave Shield
On Thu, 2005-05-12 at 06:30, Budyanto Himawan wrote: > there doesn't seem to be any directive to completely > disable an snmp version is there? If you don't configure access control settings for a particular SNMP version, then the agent won't accept requests using that version. If you want to omi

Re: SNMP Agent configuration

2005-05-17 Thread Dave Shield
On Thu, 2005-05-12 at 17:41, Budyanto Himawan wrote: > It seems that only v1 and v2c can be configured to > only allow access from a set of ip addresses. Correct. > com2sec does not really make sense for v3 which uses > usm. Correct. > Is there any way to do the same for v3? No. The User-Secur

Re: "pass persist" and Traps

2005-05-17 Thread Dave Shield
On Thu, 2005-05-12 at 12:14, Frithiof Jensen (AH/LMD) wrote: > The "pass persist" directive seems to do most of what is > needed but there is one issue: Traps/Informs. The "pass" interface is not designed to support traps. If you wish to use this mechanism, then you'd need to handle trap generatio

NETSNMP newbies,Library Problem.

2005-05-17 Thread chinmay bhat
Hello friends, I have a mib table copiled using mib2c -c mib2c.create-dataset.conf MIBNODE. the auto generated code uses the function netsnmp_table_set_add_indexes(); and the g++ compiler gives a link time error: /agent/source/commonTables.cc:91: undefined reference to `netsnmp_table_set_add_index

Re: Microsoft Exchange MIB

2005-05-17 Thread Dave Shield
On Tue, 2005-05-17 at 13:20, [EMAIL PROTECTED] wrote: > do someone know if there is a MIB that permit me to > monitor the size of the stored mail database on a > Microsoft Exchange Server? There's nothing suitable implemented in the Net-SNMP agent, no. There might be something in Microsoft's own

Re: How to GET a COUNTER32 variable ????

2005-05-17 Thread Dave Shield
On Mon, 2005-05-16 at 18:59, Gemma Sánchez wrote: > Now, I need to GET the value of this variable from my program, so I have > write the next piece of code: > > peticion = snmp_pdu_create(SNMP_MSG_GET); > snmp_add_null_var(peticion, aeIndLibre_oid, OID_LENGTH(aeIndLibre_oid)); And what is the

Re: GETNEXT looping problem

2005-05-17 Thread Dave Shield
On Fri, 2005-05-13 at 14:05, Kurapati M-G19456 wrote: > 1. GETNEXT on the last scalar object: > NET-SNMP Library calls the table handlers in the following order. > > a. getnext on table-one > b. getnext on table-two > c. getnext on table-three > d. getnext on table-two Yes

Re: For get-next processing, what should be the error code to be retu rned to the net-snmp library if there is no-next instance for the given O ID..?

2005-05-17 Thread Dave Shield
On Sun, 2005-05-15 at 13:09, Pamidipati Suresh-G20238 wrote: > For get-next processing, what should be the error code to be returned > to the net-snmp library if there is no-next instance for the given > OID..? It doesn't matter. The MIB handler can explicitly return a noSuchInstance or noSuchObj

Re: Exec and extend (was Calculationg CPU usage using ssCpuRawIdle)

2005-05-17 Thread Dave Shield
On Wed, 2005-05-11 at 18:18, Mohr James wrote: > >> There's an equivalent directive "extend" which works in the > >> same way as "exec" > Something is not working here. I add this to my snmpd.conf > > exec shelltest /bin/bash /tmp/shtest > > and I can walk 2021.8 tree. If I change the "exec" t

Re: DISMAN-EVENT-MIB ?

2005-05-17 Thread Dave Shield
On Thu, 2005-05-12 at 11:57, çåä wrote: > In the man page of SNMPD, it is said something about how to incorporate > âDISMAN-EVENT-MIBâ; > I run the following commands: > $ ./configure -with-mib-modules=âdisman/event-mibâ > $ make > $ make install Yes - that's correct. > I find

Microsoft Exchange MIB

2005-05-17 Thread [EMAIL PROTECTED]
Hi all, do someone know if there is a MIB that permit me to monitor the size of the stored mail database on a Microsoft Exchange Server? Thanks in advance. -- Michele Furno. Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. Scegli Libe

Re: Connection from UDP: [127.0.0.1] REFUSED in snmp.log file

2005-05-17 Thread Dave Shield
On Sat, 2005-05-14 at 17:31, Nikolaj Dahl wrote: > My problem is that all UDP connections from localhost/lan/wan ip seems > to be refused, and my snmpd.log file has these entrys: > Connection from UDP: [127.0.0.1]:2656 REFUSED > Connection from UDP: [10.0.0.7]:2657 REFUSED > etc. etc. That's proba

Re: current time

2005-05-17 Thread Dave Shield
On Thu, 2005-05-12 at 11:48, çåä wrote: > I want to know current time of the snmpd agent at any moment. > Is there a mib like sysUpTime.0 to let me know. Yes. HOST-RESOURCES-MIB::hrSystemDate.0 Dave --- This SF.Net email is sponsore