writing a subagent -- newbie help

2010-09-27 Thread Matt Flanzer
Hello all -- I've installed NET-SNMP on my Mac (via macports) and I'm trying to write a subagent. I've followed the wiki instructions, but I can't get it to work. Basically, no matter what I've tried I get the response: No Such Object available on this agent at this OID I've also tried the demo

Re: how to report stats for a fake network interface in Linux?

2010-09-27 Thread Ted Zlatanov
On Fri, 24 Sep 2010 13:32:13 -0500 Ted Zlatanov t...@lifelogs.com wrote: TZ I have some rapidly changing stats I want to report via SNMP. It would TZ be terrific if I could do that in the IF-MIB interface table, but it's TZ pretty hard to plug in my Perl subagent in just the right places. TZ I

error on subcontainer 'ia_addr' insert (-1)

2010-09-27 Thread Michala Srnova
Hi, when I start snmp daemon with proxy settings, the message error on subcontainer 'ia_addr' insert (-1) is written periodically to the console. Everything work properly, but this message is annoying. I have read that there was made a patch for this problem in net-snmp version 5.3 The new

Memory leak in 5.5

2010-09-27 Thread kavita raghunathan
Hello, I'm using net-snmp-5.5 over centos Linux and notice that the snmpd process gradually eats up memory over time. Please note that no gets or sets are going on. I have posted before with no response. Please help. Is this a known problem ? The leak occurs with no extra mibs other than the

Apply Patch

2010-09-27 Thread Leo Lin
Hi,   Someone knows how to apply a patch?  I googled it, and found that it must use the script `patch` like so,   patch -p0 /path/to/patch.file   the problem is that I cannot find the `patch` script,   Leo;   --

Re: Memory leak in 5.5

2010-09-27 Thread Bart Van Assche
On Mon, Sep 27, 2010 at 4:49 PM, kavita raghunathan kraghuna2...@yahoo.comwrote: Hello, I'm using net-snmp-5.5 over centos Linux and notice that the snmpd process gradually eats up memory over time. Please note that no gets or sets are going on. I have posted before with no response. Please

Re: Apply Patch

2010-09-27 Thread Bart Van Assche
On Mon, Sep 27, 2010 at 4:57 PM, Leo Lin hayashi_...@yahoo.com wrote: Hi, Someone knows how to apply a patch? I googled it, and found that it must use the script `patch` like so, patch -p0 /path/to/patch.file the problem is that I cannot find the `patch` script, All you have to do

Re: Memory leak in 5.5

2010-09-27 Thread kavita raghunathan
Valgrind found no leaks. I left it over night. But top still reports that snmpd is leaking memory. I did do what he suggested. What I'm trying to say is, is there any known memory leaks with net-snmp 5.5 ? Has anyone else reported a problem ? Google does not show anyone reporting a problem, but

Re: Memory leak in 5.5

2010-09-27 Thread Bart Van Assche
On Mon, Sep 27, 2010 at 5:45 PM, kavita raghunathan kraghuna2...@yahoo.comwrote: Valgrind found no leaks. I left it over night. But top still reports that snmpd is leaking memory. I did do what he suggested. What I'm trying to say is, is there any known memory leaks with net-snmp 5.5 ? Has

Re: Memory leak in 5.5

2010-09-27 Thread kavita raghunathan
You are correct; you got me there. I only looked at the running output. Which already had a bunch of initialization leaks which I ignored because that was not my concern - my target was the ever increasing leak over time that top reported. But valgrind did not report anything overtime, it must

writing a subagent -- newbie help

2010-09-27 Thread Matt Flanzer
Hello all -- I've installed NET-SNMP on my Mac (via macports) and I'm trying to write a subagent. I've followed the wiki instructions, but I can't get it to work. Basically, no matter what I've tried I get the response: No Such Object available on this agent at this OID I've also tried the demo

Is there NetSNMP::agent support for sending Traps?

2010-09-27 Thread Fulko Hew
I just needed to coble up a test sub-agent (in Perl) that acts as an AgentX based sub-agent. All went well for what I needed to test, but... I see support for gets and sets, but what I didn't see was any support for forwarding traps to an AgentX master from Perl sub-agents. Is it missing, or am

5.6 release date

2010-09-27 Thread Brady.Chang
Hello All, when is the release date(in weeks or months) for the net-snmp 5.6. thanks -Brady -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and

Re: SNMP only getting data every 15 seconds.

2010-09-27 Thread Steve (Telsat Pacific)
Hi All, Wondering if anyone is able to help with this one? Thanks Steve On 24/09/2010 8:45 AM, Steve (Telsat Pacific) wrote: Hello All, I currently monitor the interface bandwidth from my debian servers using STG and we've recently replaced a server with a new one and I've installed

Re: SNMP only getting data every 15 seconds.

2010-09-27 Thread Les Mikesell
On 9/27/2010 3:36 PM, Steve (Telsat Pacific) wrote: I currently monitor the interface bandwidth from my debian servers using STG and we've recently replaced a server with a new one and I've installed net-snmp on it, but it won't allow me to get per-second interface bandwidth details. When

Re: writing a subagent -- newbie help

2010-09-27 Thread Wes Hardaker
On Fri, 24 Sep 2010 16:53:15 -0700, Matt Flanzer mattflan...@gmail.com said: MF Basically, no matter what I've tried I get the response: MF No Such Object available on this agent at this OID One thing worth doing is running both the subagent and the master agent with debugging output. You

Re: writing a subagent -- newbie help

2010-09-27 Thread Wes Hardaker
On Mon, 27 Sep 2010 22:50:41 +0200, sebastian2...@gmx.de sebastian2...@gmx.de said: Sd REALLY nice would be to have a simple compiling example, how to create a Sd program which can act as trapsender, client and server at once. FYI, the example code in agent/mibgroup/examples/notification.c

Re: 5.6 release date

2010-09-27 Thread Wes Hardaker
On Mon, 27 Sep 2010 12:58:55 -0400, brady.ch...@emc.com said: when is the release date(in weeks or months) for the net-snmp 5.6. The current plan, assuming no show-stopping bugs, is to release it this Friday, the 1st. But since I now have a personal conflict it's more likely to be either

Re: setup net-snmp for Sun 5.9 sun4us sparc

2010-09-27 Thread Wes Hardaker
./snmpconf: not found Anyone can help me? I suspect that's because snmpconf is a perl script and you don't have perl installed at the path that the script is trying to use. -- Wes Hardaker Cobham Analytic Solutions

Re: AES-256 Support in NetSNMP

2010-09-27 Thread Wes Hardaker
VV From the older posts in NetSNMP forums I understood that NetSNMP VV version 5.1.4 was (partially) supporting AES256 and later versions VV of the NetSNMP dropped the support. From the information available VV in the NetSNMP wiki, it seems they dropped the support as AES 256 VV 192 were in

Re: writing a custom handler using python bindings

2010-09-27 Thread Wes Hardaker
On Thu, 23 Sep 2010 06:12:05 +0200, Tzury Bar Yochay tzury...@reguluslabs.com said: TBY (I am all new to the snmp itself, let alone net-snmp TBY implementation). I would like to use netsnmp to monitor and manage TBY a cluster of 180 linux-based appliances and wondered about whether TBY it is

Re: a patch for memory leak

2010-09-27 Thread Wes Hardaker
On Wed, 22 Sep 2010 08:17:20 +0100, Dave Shield d.t.shi...@liverpool.ac.uk said: DS As far as I can tell, the protocol specifies the maximum number of DS subidentifiers within a single OID, but not the number of varbind DS that are allowed in a single request. Ohh... I misread that sentence

Re: Can agent edit/update snmpd.conf

2010-09-27 Thread Wes Hardaker
MP We have a situation where in the subagent proces is getting killed MP without any core dumps, while this is happening, one of the managers MP added (first one in the list) to snmpd.conf is getting removed from MP the snmpd.conf file. We dont see any logs that the subagent is MP doing this

Re: Can agent edit/update snmpd.conf

2010-09-27 Thread Malathi Panyam
Sorry, if I was not clear. I was referring to the access control information (both rocommunity and trap2sink) we add to the snmpd.conf at /etc/snmp/snmpd.conf.   We collect the hosts that can access our node from the user and add them to snmpd.conf file. We allow both IP addresses and FQDN's

Re: writing a subagent -- newbie help

2010-09-27 Thread Matt Flanzer
Thanks everyone for your initial responses. I think if I can get the example subagent code working, I could get mine to as well. Using the -Dagentx flag doesn't produce any additional output on the example subagent. On the master agent (snmpd) it does print some extra lines, but nothing new is

RE: setup net-snmp for Sun 5.9 sun4us sparc

2010-09-27 Thread Huynh Truc Lam
Hi Was Hardaker, My server already have perl. HOLVUX1:# perl -v This is perl, v5.6.1 built for sun4-solaris-64int (with 48 registered patches, see perl -V for more detail) Copyright 1987-2001, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-27 Thread Leo Lin
Hi Bart,   I applied the patch, it modifies the files   interface_linux.c in ~/net-snmp-5.6.rc1/agent/mibgroup/if-mib/data_access   ipaddress_linux.c in ~/net-snmp-5.6.rc1/agent/mibgroup/ip-mib/data_access   util_funcs.c util_funcs.h in ~/net-snmp-5.6.rc1/agent/mibgroup   I also modified the