Subagent Build error with Proliant Red Hat EL3 update

2004-09-01 Thread Gary Price
I am compiling a net-snmp agentx subagent on red hat enterprise linux 3. Previously I was using the standard distribution of RHEL3 that included net-snmp 5.0.9. I recently installed the rpms net-snmp-cmaX-devel-5.1-83.rhel.i386 net-snmp-cmaX-5.1-83.rhel.i386 for compatibility with a custom

Re: net-snmp and lm_sensors

2004-09-01 Thread Dave Shield
Robert> Do you also have lm_sensors-devel installed? Raphael> no i've not installed them! is it necessary? General rule of thumb: - to use the commands that come as part of a given package ("wombat") you need to install the package "wombat" - to develop new commands or applications

Re: Segfault in snmpd

2004-09-01 Thread John P. Looney
On Tue, Aug 31, 2004 at 11:48:16AM -0400, [EMAIL PROTECTED] mentioned: > I could not reproduce the problem with net-snmp-5.1.2, using > an "snmpd.conf" containing only these two lines: > > exec / .1.3.6.1.4.1.2021.100 disk1 /usr/local/bin/diskused / > rwcommunity public > > From the information y

Re: snmpVacmMIB table

2004-09-01 Thread Dave Shield
> > I did walk on snmpVacmMIB table, for the last vacmViewTreeFamilyStatus > data, it gave "No more variables left in this MIB View (It is past the > end of the MIB tree)". It seems OID is duplicated. Yes - this is perfectly normal. The first copy of the last vacmViewTreeFamilyStatus instance d

Re: snmpVacmMIB table

2004-09-01 Thread Thomas Anders
Dave Shield wrote: There's probably an argument to be made for suppressing this in the snmpwalk output Agreed. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterpri

Re: Segfault in snmpd

2004-09-01 Thread Tommy Christensen
John P. Looney wrote: exec .1.3.6.1.4.1.2021.51 memfree /usr/local/bin/memfree$ exec .1.3.6.1.4.1.2021.100 disk1 /usr/local/bin/diskused /$ The .100 OID is already used by "ucd-snmp/versioninfo", so you cannot just hi-jack that one - but how would anybody know that ?! I think a playing-ground subt

Re: Segfault in snmpd

2004-09-01 Thread John P. Looney
On Wed, Sep 01, 2004 at 12:46:29PM +0200, Tommy Christensen mentioned: > I guess the one in netsnmp_register_old_api() could just be removed, but > I haven't checked all possible error paths in the code (!!). Heh. I thought it might be something like that. Dumb admin does something stupid, and fi

Re: tcp wrappers/agentx subagent/reconnect

2004-09-01 Thread slif
> On Tue, 31 Aug 2004 20:12:57 -0400 [EMAIL PROTECTED] wrote: > Dave Shield wrote: > >I've just applied a patch to the main development code line, > >that should avoid trying to validate such local connections > >against the hosts.{allow,deny} files. > > Should the 5.65 change that was applied to

Re: AgentX registration failure

2004-09-01 Thread slif
Magnus Fromreide wrote: > Hello. > > If you try to register multiple items that fails as follows: > > Try to register 1.3.6.1.3.4 - 1.3.6.1.3.6: > > Using single registrations we end up with three items in agent_registry: > > 1.3.6.1.3.4 - 1.3.6.1.3.5 > 1.3.6.1.3.5 - 1.3.6.1.3.6 > 1.3.6.1.3.6 -

Re: AgentX registration failure

2004-09-01 Thread Dave Shield
> I believe that the logical outcome for registering three single objects > should be three ranges N::N, not N::N+1. > > e.g., I would believe that these would be correct: > > 1.3.6.1.3.4 - 1.3.6.1.3.4 > 1.3.6.1.3.5 - 1.3.6.1.3.5 > 1.3.6.1.3.6 - 1.3.6.1.3.6 > > > Is there some other know

how to restrict user to 2 trees

2004-09-01 Thread 李 曙歌
hello developer Happy to get your answer ,now I have a new question,please help I use com2sec, group, view in snmpd.conf to restrict user to *one* tree ,that is right but how i restrict user to *two* tree,for example I want to restrict user to 1.3.6.1.2.1.1 and 1.3.6.1.4.1.1234, but n

Re: how to restrict user to 2 trees

2004-09-01 Thread Dave Shield
>I want to restrict user > to 1.3.6.1.2.1.1 > and 1.3.6.1.4.1.1234 view allowed_viewincluded .1.3.6.1.2.1.1 view allowed_viewincluded .1.3.6.1.4.1.1234 access group "" any noauth exact allowed_view none none If you've got a Linux system, this is exactly what RedHat does

Re: Libraries required for Net-SNMP 5.1

2004-09-01 Thread Coders
On Wed, 01 Sep 2004 14:11:52 +1000 Gary wrote: GP> I recently installed Net-SNMP 5.1 from a red-hat distribution for GP> Proliant server, net-snmp-cmaX-5.1-83-rhel3.i386.rpm (also the devel GP> rpm). Notes: 1) the most current 5.1.x version is 5.1.2. 2) net-snmp-cmaX is a custom RPM from another

Re: Subagent Build error with Proliant Red Hat EL3 update

2004-09-01 Thread Coders
On Wed, 01 Sep 2004 11:20:42 +1000 Gary wrote: GP> I recently installed the rpms GP> net-snmp-cmaX-devel-5.1-83.rhel.i386 GP> net-snmp-cmaX-5.1-83.rhel.i386 GP> for compatibility with a customer. GP> GP> In compiling my subagent [...] I got the following error: GP> GP> /usr/include/net-sn

Re: AgentX registration failure

2004-09-01 Thread Magnus Fromreide
On Wed, Sep 01, 2004 at 03:02:39PM +0100, Dave Shield wrote: > > > I believe that the logical outcome for registering three single objects > > should be three ranges N::N, not N::N+1. > > > > e.g., I would believe that these would be correct: > > > > 1.3.6.1.3.4 - 1.3.6.1.3.4 > > 1.3.6.1.3.5

main branch agent dies if no /proc/net/if_inet6

2004-09-01 Thread slif
Add these to configure: --enable-ipv6 --with-transports="TCPIPv6 UDPIPv6" On a Linux RedHat 9 system, /var/log/snmpd.log contains one line: could not open /proc/net/if_inet6 Apparently the agent stops dead in its tracks when it can't find that pseudo file. Could this be changed to jus

C dialects

2004-09-01 Thread Magnus Fromreide
Hello. It seems snmplib/callback.c in the CVS version contains a C++-style comment on line 292. Could that please be changed to an C-style comment so that C90 compilers can compile that as well? /MF --- This SF.Net email is sponsored by BEA We

Re: Segfault in snmpd

2004-09-01 Thread Coders
On Wed, 01 Sep 2004 12:46:29 +0200 Tommy wrote: TC> John P. Looney wrote: TC> > exec .1.3.6.1.4.1.2021.51 memfree /usr/local/bin/memfree$ TC> > exec .1.3.6.1.4.1.2021.100 disk1 /usr/local/bin/diskused /$ TC> TC> The .100 OID is already used by "ucd-snmp/versioninfo", so you cannot TC> just hi-jac

Re: AgentX registration failure

2004-09-01 Thread slif
Magnus Fromreide wrote: > On Wed, Sep 01, 2004 at 03:02:39PM +0100, Dave Shield wrote: > >>>Mike Slifcak wrote: >>>I believe that the logical outcome for registering three single objects >>>should be three ranges N::N, not N::N+1. >>> >>>e.g., I would believe that these would be correct: >>> >>>

Re: main branch agent dies if no /proc/net/if_inet6

2004-09-01 Thread Coders
On Wed, 1 Sep 2004 13:31:37 -0400 [EMAIL PROTECTED] wrote: SN> Add these to configure: SN> SN> --enable-ipv6 --with-transports="TCPIPv6 UDPIPv6" SN> SN> On a Linux RedHat 9 system, /var/log/snmpd.log contains one line: SN> SN> could not open /proc/net/if_inet6 SN> SN> Apparently the agent

Re: C dialects

2004-09-01 Thread Coders
On Wed, 1 Sep 2004 19:50:41 +0200 Magnus wrote: MF> It seems snmplib/callback.c in the CVS version contains a C++-style comment MF> on line 292. Could that please be changed to an C-style comment so that MF> C90 compilers can compile that as well? Fixed. It would have been caught before release, a

Re: main branch agent dies if no /proc/net/if_inet6

2004-09-01 Thread slif
Robert Story (Coders) wrote: > On Wed, 1 Sep 2004 13:31:37 -0400 [EMAIL PROTECTED] wrote: > SN> Add these to configure: > SN> > SN> --enable-ipv6 --with-transports="TCPIPv6 UDPIPv6" > SN> > SN> On a Linux RedHat 9 system, /var/log/snmpd.log contains one line: > SN> > SN> could not open /pr