Re: Newbie - MIB Building

2005-04-26 Thread Alex Burger
Hi. [EMAIL PROTECTED] wrote: Hello everyone, I'm a new member of this mailing list and I write from Italy. I'm learning SNMP and right now I'm trying to add a variable to an existing MIB. I've been told that this is impossible unless I use an extensible agent that supports sub-agents and this is

Re: SNMP PROXY HELP!

2005-04-26 Thread Alex Burger
Rustagi, Sandeep (Sandeep) wrote: Hi All, Still not able to resove. Is there any examples available somewhere which I can see how to use proxy token words? They are full SNMP subagents in their own right. If i do snmpget/snmpwalk directly they give the response. There are examples in the snmpd.conf

Re: Net-snmp winsock build errors on Cygwin

2005-04-26 Thread Alex Burger
Roberts, Allison R. wrote: Greetings, I am compiling the net-snmp 5.2.1 package on Cygwin under XP (sp2) and have run into errors due to winsock.h. I used the recommended win32 configure: sh configure --with-mib-modules="host agentx disman/event-mib examples/example" --with-out-mib-modules=host/h

Snmpd in PPC?

2005-04-26 Thread 秦宇伟
Dear net-snmp-users! I am trying to run snmpd in powerpc 852 through cross- compile. The version of net-snmp I used is 5.2.1. the operate system of host I used is Fedora 3. The steps I followed is : (1 ) set the environment variable $ CC=powerpc-linux-gcc $ export

Re: Calculationg CPU usage using ssCpuRawIdle

2005-04-26 Thread frank
The problem is that ssCpuRawIdle means very little without some context. The other ssCpuRaw* OIDs factor in here too. The best method I found (which may or may not be the correct method) is to collect ALL the CPU OIDs (especially User and Sys, quite possibly Wait too) in order to average them a

Calculationg CPU usage using ssCpuRawIdle

2005-04-26 Thread Mohr James
Hi All! I must be doing something really stupid or I do not understand something. I am trying to calculate the %CPU usage on a SuSE Linux 9.0 running net-snmp 5.2.1. I have a script that gets the value once, sleeps 60 seconds, gets the value again, calculates the difference, then divides this diff

Re: can a table include another table?

2005-04-26 Thread Dave Shield
On Tue, 2005-04-26 at 10:37, Sim Wind wrote: > i could not find any nested tables in net-snmp, so i want to know > whether i can do like it, or some other good idea? Strictly speaking - no, you can't. MIB tables can only contain leaf column objects. They can't include other tables. However, you *

Re: Resend a received Trap with a different peername

2005-04-26 Thread Dave Shield
On Mon, 2005-04-25 at 19:15, Wes Hardaker wrote: > I believe you're suppose to use the wrapper functions rather > than deal with things directly. there is a netsnmp_transport_copy > that I think may do the right thing? But that copies an existing transport address (and is actually what's being c

When not to retry INFORM PDUs

2005-04-26 Thread Bouchard, Rich
When sending an INFORM PDU, the net-snmp code considers a failure in the "sendto" call to be sufficiently authorative that the inform PDU is not subsequently retried. I.e. if the sendto() fails, no further attempts are made to deliver the inform. I've been looking for a reference, preferably

Re: snmpget fails - undefined symbol: des_key_sched

2005-04-26 Thread Wes Hardaker
> On Thu, 21 Apr 2005 15:42:32 -0700 (PDT), "Karthik.C.L" <[EMAIL > PROTECTED]> said: Karthik> When I try to query for any OID using DES privacy Karthik> protocol, my SNMP query fails with Karthik> " libnetsnmp.so.5: undefined symbol: des_key_sched" Have you recently upgrade or changed

Re: perl module / object value / oid translation

2005-04-26 Thread Stuart Kendrick
hi dave, btw: net-snmp-5.2.1, perl-5.8.6, SuSE 9.2 -ok, i can try specifying version. ... and ... doing that didn't change the result ... but your exercise got me to focus more closely on what i'm doing ... and to realize that i misreported what i was seeing in my previous message. contrary

Re: Are there any examples of SNMP::TrapSession - I'll be darnedIf I can get it to work!

2005-04-26 Thread Wes Hardaker
> On Mon, 25 Apr 2005 17:08:20 +0100, "Andy Ford" <[EMAIL PROTECTED]> said: Andy> Wes - thanks for responding with a patch. Unfortunately, it Andy> didn't work. I limited my perl script to the following but the Andy> memory issue still persists... Ok. I've narrowed it down to variables that

Re: Question about locations for mib loading

2005-04-26 Thread Robert Story
On Mon, 25 Apr 2005 09:17:52 -0300 Fabio wrote: FM> Ok, let me explain in detail the problem I am experiencing: FM> I deleted my MIB file from the /usr/local/share/snmp/mibs/ and put it FM> on $HOME/.snmp/mibs/. FM> VIA-PE-MIB: Module not found FM> Cannot find module (VIA-PE-MIB): At line 0 in (no

Re:

2005-04-26 Thread Wes Hardaker
> On Fri, 22 Apr 2005 16:56:39 +0200, "Susanne Goldammer" <[EMAIL > PROTECTED]> said: Susanne> What i like to do is to write a proxy. Do you realize that net-snmp's agent already contains proxy support? see the "proxy" directive in the snmpd.conf manual page which should let you do just

Re: setting sysDescr on UCD-SNMP 4.2.6

2005-04-26 Thread Wes Hardaker
> On Thu, 21 Apr 2005 18:34:34 +0800, "Jose Vergara" <[EMAIL PROTECTED]> > said: Jose> hardcoding the sysDescr on the snmpd.conf file doesn't Jose> work.. using the override function also doesn't work 'coz i have Jose> a lower version of snmp.. any thoughts? Jose> btw, where does sysDesc

Re: Memory leak in sub-agents

2005-04-26 Thread Robert Story
On 25 Apr 2005 15:06:51 +0530 Sasikumar wrote: SB> Sorry for mistake i am using SB> netsnmp_register_table(my_handler, table_info); SB> SB> Whenever i enter the Handler i process the request i.e. send the SB> request to the EMS and get the response. SB> SB> Whenever getnext or walk on

Re: Repost: Net-snmp doubt

2005-04-26 Thread Mauricio Reyes
Hello Robert, I have tested the patch and it seems to work in these conditions: 1. trapsses destination down 2. destination started after agent started 3. destination restarted while agent running And all traps were received as expected. No error message was seen. Thanks a lot for your help.

Re: Question about locations for mib loading

2005-04-26 Thread Fabio Margarido
Ok, tried deleting .index from /usr/local/share/snmp/mibs and it didn't change anything. When I run that command you said, I get the following: snmptranslate -IR -Dread_config: sysContact read_config:initmib: using mibdirs: /usr/local/share/snmp/mibs read_config:initmib: using mibs: +VIA-PE-MIB re

Re: Question about locations for mib loading

2005-04-26 Thread Fabio Margarido
> Is VIA-PE-MIB you're mib?or is it referenced by your mib? Yeah, VIA-PE-MIB is my MIB. On 4/25/05, Wes Hardaker <[EMAIL PROTECTED]> wrote: > > On Mon, 25 Apr 2005 09:17:52 -0300, Fabio Margarido <[EMAIL PROTECTED]> > > said: > > Fabio> $> export MIBS=+MY-MIB > > Fabio> As far as I

Re: Question about locations for mib loading

2005-04-26 Thread Wes Hardaker
> On Mon, 25 Apr 2005 09:17:52 -0300, Fabio Margarido <[EMAIL PROTECTED]> > said: Fabio> $> export MIBS=+MY-MIB Fabio> As far as I know, that would be enough for mib2c to find the Fabio> MIB and load it correctly, right? assuming a fairly recent mib2c and related perl modules, yes. Fab

Re: Question about locations for mib loading

2005-04-26 Thread Fabio Margarido
Ok, tried deleting .index from /usr/local/share/snmp/mibs and it didn't change anything. When I run that command you said, I get the following: snmptranslate -IR -Dread_config: sysContact read_config:initmib: using mibdirs: /usr/local/share/snmp/mibs read_config:initmib: using mibs: +VIA-PE-MIB re

CrossCompiling Net-Snmp 5.2.1 for ARM9

2005-04-26 Thread Stage Iup - Fabrice & Frédéric
Hi all I'm looking for some information in crosscompiling NetSnmp for Arm I've seen that there is already a topic about this subject but i haven't found any response in it Actually, i'm using prebuild toolchain 2.95.3 and 3.0 and i've some problems in building configure step seems to run well but

can a table include another table?

2005-04-26 Thread Sim Wind
hi, all   at the agent, i have a file in which the net flux info of some hosts managered is recorded, the infomations, e.g. the host ip, record time, send and recieve at different ports and different protocol: tcp,udp and such on. now i want get some data in this file by snmp, when i design the mib

Re: creating my own MIB to monitor mail queue.

2005-04-26 Thread Robert Story
On Mon, 25 Apr 2005 09:38:27 +0100 Dave wrote: DS> On Sat, 2005-04-23 at 14:09, Miguel Gómez wrote: DS> > I've read the FAQs and another mails about things similar and DS> > I think I have to compile something or use mib2c DS> DS> Yes. Maybe. You could also use one of the snmpd.conf tokens to imp

handle set requests with pass_persist

2005-04-26 Thread Jakob Scheck
Hello, I use a perl script as pass_persist EXEC to handle some OIDs. snmpget and snmpgetnext requests work fine but I am not sure about set requests. # snmpget -v 2c -c COMMUNITY HOST OIOD TYPE STRING results in # Error in packet. # Reason: notWritable (That object does not support modification)

Re: When not to retry INFORM PDUs

2005-04-26 Thread Dave Shield
On Mon, 2005-04-25 at 20:37, Bouchard, Rich wrote: > I've been looking for a reference, preferably an RFC, which defines > this behavior, but I'm failing to find one. > > Is this defined behavior, or would this just an implementation > decision in an area where the standard doesn't specify an exac

setting sysDescr on UCD-SNMP 4.2.6

2005-04-26 Thread Jose Vergara
hardcoding the sysDescr on the snmpd.conf file doesn't work.. using the override function also doesn't work 'coz i have a lower version of snmp.. any thoughts? btw, where does sysDescr gets its default value? mine seems to take the output of `uname -a` This email message (including attachmen

Newbie - MIB Building

2005-04-26 Thread [EMAIL PROTECTED]
Hello everyone, I'm a new member of this mailing list and I write from Italy. I'm learning SNMP and right now I'm trying to add a variable to an existing MIB. I've been told that this is impossible unless I use an extensible agent that supports sub-agents and this is why I'm trying Net-Snmp (BTW:

Re: Problem on 64 bit machine: Timeout: No response from localhost

2005-04-26 Thread Robert Story
On Fri, 22 Apr 2005 14:17:46 +0800 LIAO, wrote: LG> The OS environment: RHEL Alpha 3 with NET-SNMP 5.1.2. Can your try this patch? -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Jun

how to know hard disk read-write rate

2005-04-26 Thread Miguel Gómez
Hello, I need to know what should I do to know the real hdd read-write rate. I don't find any variables that reflect this value. And I could use hdparm -T command, but I don't want that value, not my hdd maximun read-write rate, the real one. I mean, if I write 1Mbyte in a second, I need a value th

Re: creating my own MIB to monitor mail queue.

2005-04-26 Thread Miguel Gómez
Thank you for your support, Dave and Robert. I don't know much about how to write code to implement what I need. But I have found another alternative, in snmpd.conf I've written: exec exim4queue exim4 -bpc gestion:/etc/mysql# snmpget -v 2c -c buzones buzon01 extOutput.1 UCD-SNMP-MIB::extOutput.1