libwrap

2004-07-20 Thread Carlos Cantu
I see USE_LIBWRAP is defined in ucd-snmp, but undefined in net-snmp. Or at least it's defined in ucd-snmp-config.h, but not in acconfig.h. Could my problem where I crash due to hosts_ctl undefined be caused by using (or pointing to) the wrong .so's? I have a problem where libnetsnmpagent.so give

PERL problem with mib2c

2004-07-20 Thread Gary Clark
Running net-snmp-5.1.2.pre3 release.   When performing the following $ mib2c etherStatsEntry   It looks like the two expected templates get generated:   etherStatsEntry.c and etherStatsEntry.h   However I then see the following:   running indent on etherStatsEntry.c C:\cygwin\bin\perl.exe (399

snmpd does not send traps

2004-07-20 Thread Alexander Piavka
in snmpd.conf i have: proc rpc.mountd 1 1 trapsess -Ci -c public -v 2c snmp rouser trapsender noauth agentSecName trapsender monitor -r 10 -o prNames -o prErrMessage "process table" prErrorFlag != 0 the snmpd does not send trap then i stop the mountd daemon and check with snmpwalk i see that snm

Re: snmpd does not send traps

2004-07-20 Thread Alexander Piavka
i've checked the tcp_wrappers issue but this did not help the /etc/hosts.allow was empty but in /etc/hosts.deny i had (on both snmp and ha-rs1 hosts): ALL : ALL EXCEPT 132.72.41. , 127.0.0.1 while snmp and ha-rs2 hosts are both in 132.72.41. segment the weird thing is that conf did not work(may

PERL problem with mib2c

2004-07-20 Thread Gary Clark
Running net-snmp-5.1.2.pre3 release.   When performing the following $ mib2c etherStatsEntry   It looks like the two expected templates get generated:   etherStatsEntry.c and etherStatsEntry.h   However I then see the following:   running indent on etherStatsEntry.c C:\cygwin\bin\perl.exe (39

RE: SNMP traps for disk errors handling

2004-07-20 Thread Bruce Shaw
Sorry for the delay in answering - been busy. MR>I'm working on a solution to handle disk physical errors using SNMP MR>traps. I've got net-snmp installed on all my servers and would like to MR>set my agent to send traps to a management host whenever a disk is MR>dealing with physical errors. MR

I've been getting buried in traps since 5.1.1

2004-07-20 Thread Bruce Shaw
# snmpd.conf (names changed to protect the guilty) # syslocation "There" syscontact "Help desk" sysservices 79 agentSecName foobar1z rouser foobar1z rocommunity sandy trapsink foobar1z sandy trap2sink foobar1z sandy informsink foobar1z sandy trapcommunity sandy proc mdlogd ##

Re: Loading CISCO-GENERAL-TRAPS mib

2004-07-20 Thread Mitch Raful
That did the trick! Now if I can figure out why that is the only MIB that gives me a broken pipe when the traphandle is executed. Mitch - Original Message - From: "Dave Shield" <[EMAIL PROTECTED]> To: "Mitch Raful" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 20, 2

Re: fd's in select

2004-07-20 Thread Carlos Cantu
> UCD-SNMP version 4.2.6 <=== THIS MAY BE MY PROBLEM!!! NOT POINTING TO > THE RIGHT VERSION OF SNMPD. I'LL TRY >FIGURING WHY THAT IS AND REPORT BACK. pointing to the newer 5.0.8 fixed my problems... thanks for lending a k

HP Health Agents for Proliant on Linux

2004-07-20 Thread VEGH Karoly
(pls forgive me if this mail arrives doubled) Hi all. I have couple of HP (CPQ?) Proliant boxes, and am happily running on the Debian Linux. HP provides couple of SNMP agents for linux for the hardware monitoring. However, they are Providing only for RedHat and the like. I downloaded their so

Re: fd's in select

2004-07-20 Thread Carlos Cantu
> What does it mean when I don't get many fd's from the snmp_select_info() > call? Lately, the count is not higher than 2, and I cannot process SNMP > requests. I've seen when the count is 3 or 4, I am able to process > requests. Any ideas? Maybe the select is not the problem, looking at the ou

Re: Loading CISCO-GENERAL-TRAPS mib

2004-07-20 Thread Dave Shield
> When attemptig to load the GENERAL_TRAPS mib the following shows up in = > the output: > > Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 } > Undefined identifier: snmp near line 74 of > /usr/share/snmp/mibs/CISCO-GENERAL-TRAPS.my Try tweaking the CISCO-GENERAL-TRAPS.my file to add t

Loading CISCO-GENERAL-TRAPS mib

2004-07-20 Thread Mitch Raful
When attemptig to load the GENERAL_TRAPS mib the following shows up in the output:   Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }Undefined identifier: snmp near line 74 of /usr/share/snmp/mibs/CISCO-GENERAL-TRAPS.my   Any ideas why this does not load.  I believe SNMPV2-MIB loads prior

RE: Bind Exception - snmptrapd

2004-07-20 Thread Mijeong Seo
That fixed the problem easily. Thanks a lot Dave! MJ -Original Message- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: July 20, 2004 11:01 AM To: Mijeong Seo Cc: Net-snmp-users Subject: Re: Bind Exception - snmptrapd > No. What my trap generator does is to generate traps only when

Re: Bind Exception - snmptrapd

2004-07-20 Thread Dave Shield
> No. What my trap generator does is to generate traps only when > certain condition occurs. Fair enough - that makes perfect sense. > This generator uses JoeSNMP Java library and actually it opens > port 162 to send traps. But that doesn't! Why do you want to use a registered *listening* port (

RE: Bind Exception - snmptrapd

2004-07-20 Thread Mijeong Seo
No. What my trap generator does is to generate traps only when certain condition occurs. This generator uses JoeSNMP Java library and actually it opens port 162 to send traps. Now I understand why it shouldn't work but is there any walk-around to have both snmptrapd and external trap generator ru

Re: Emanate compatibility

2004-07-20 Thread C Wells
Are French or Belgian ? ;-) Is the Emanate agent you speak of part of HP/UX ? SNMP Research do have some expensive products. What does your sub agent do ? --- Leleu Nicolas <[EMAIL PROTECTED]> wrote: > Hello. > > I'm a french young diplomed, and I'm on a society > that has developped an > snmp s

Re: Basic config for Debian package of net-snmp

2004-07-20 Thread David Goodenough
On Tuesday 20 July 2004 12:21, Dave Shield wrote: > > OK, this is where I found that the file that the Debian package > > provided for me and the FAQ and other documentation did not > > seem to be talking about the same thing. > > Sort of. > The Debian package is using the individual access control

Re: script called by traphandle getting executed twice

2004-07-20 Thread stephen . jackson
Well, for now I got around it being executed twice by moving the snmptrapd.conf file to /etc and then specifying the new location when launching snmptrapd: /usr/local/sbin/snmptrapd -OS -c /etc/snmptrapd.conf -Ls0 Since /etc isn't part of the default search path, it only finds it with the -c o

Re: script called by traphandle getting executed twice

2004-07-20 Thread stephen . jackson
Here are the results from sending the trap when running snmptrapd -d: Jul 20 08:11:27 [EMAIL PROTECTED] snmptrapd[15035]: [ID 702911 daemon.info] Starting snmptrapd 5.1.1 Jul 20 08:12:08 [EMAIL PROTECTED] snmptrapd[15035]: [ID 702911 daemon.debug] Jul 20 08:12:08 [EMAIL PROTECTED] Received 54 by

snmpget question

2004-07-20 Thread Mike Mohamet
Hi all, For the needs of my company I am creating an experimental MIB file. I would like to ask you if it is possible to use snmpget to retreive a whole file (e.g. log file) from the agent. Thanks in advance, Mike --- This SF.Net email is sp

Re: Basic config for Debian package of net-snmp

2004-07-20 Thread Dave Shield
> OK, this is where I found that the file that the Debian package > provided for me and the FAQ and other documentation did not > seem to be talking about the same thing. Sort of. The Debian package is using the individual access control directives, that are described in the very next FAQ entry:

Re: Basic config for Debian package of net-snmp

2004-07-20 Thread David Goodenough
On Tuesday 20 July 2004 10:18, Dave Shield wrote: > > I went through the /etc/snmp/snmpd,conf file and filled in the > > bits that it indicated for basic operations (or so I thought). > > But what did you change? > In particular, what access control settings do you now have? > > See the FAQ entry:

Re: Basic config for Debian package of net-snmp

2004-07-20 Thread Dave Shield
> I went through the /etc/snmp/snmpd,conf file and filled in the > bits that it indicated for basic operations (or so I thought). But what did you change? In particular, what access control settings do you now have? See the FAQ entry: How do I configure access control? >

Basic config for Debian package of net-snmp

2004-07-20 Thread David Goodenough
I have recently installed the Debian (unstable) package for net-snmp, and I went through the /etc/snmp/snmpd,conf file and filled in the bits that it indicated for basic operations (or so I thought). But when I use snmpwalk to inspect the tree all retrieve is the system object, and although it lis

Emanate compatibility

2004-07-20 Thread Leleu Nicolas
Hello.   I'm a french young diplomed, and I'm on a society that has developped an snmp sub agent using UCD.   It work great with the UCD master agent. The problem is that some client have an Emanate (www.snmp.com) Master Agent and it appear it's not compatible with the UCD framework. (and

Re: Send trap from an application, with multiple params

2004-07-20 Thread Dave Shield
> I'd like to send an SNMP trap from my application, > with multiple parameters along with it. > > Does the MIB standards support this? Yes. > If the MIB standards support this, does net-snmp support this? Yes. > For exmaple, if I design a trap in my MIB for detecting large file sizes. >

Re: example-demon can't SET integer

2004-07-20 Thread Dave Shield
> When I perform > > snmpset -c public -v 2c localhost > NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 = 5 I get the following > error > > Error in packet. > Reason: notWritable (that object does not support modification) How have you configured the access control for the agent? Can you succ

Re: script called by traphandle getting executed twice

2004-07-20 Thread Dave Shield
> It seems that any script that I put in a traphandle line in the > snmptrapd.conf file gets called twice when I send a trap to test it. The two most likely causes that spring to mind are either the trap is being received twice, or the config file is being read in twice. Try running snm

Re: Bind Exception - snmptrapd

2004-07-20 Thread Dave Shield
> Without snmptrapd running, my java trap generator works fine but it > produces java.net.BindException with snmptrapd. I guess snmptrapd > and my app can't use the same port. > > Could you give me a hint how I could make work both snmptrapd and > my trap generator using the same 162 port? Is y

Re: WRB - More issues with agent design.

2004-07-20 Thread Dave Shield
> 1. In the code produced by mib2c using the old-api.conf file includes... > ANONYMOUS > #4: > What do the two lines mean No idea - they look completely bogus to me. > 2. It would be nice to have a short example of the replacement code > for : > VAR = VALUE See the various (old-st