Re: How to register OIDs from an Object with the Agent when running embedded

2011-09-18 Thread Jon Jon
Whops, copied the wrong version, Try this: Note, test 1 and 2 work correctly, test 3 does not, but it is using the same instance of the object as test 2. Here are the snmpget commands I am using and their output: [root@elara trunk]# snmpget -v 1 -c debug localhost .1.3.6.1.4.1.99.1 SNMPv2-SMI

Re: How to register OIDs from an Object with the Agent when running embedded

2011-09-18 Thread Jon Jon
Hello All, To further expound on my previous post, what I am seeing is the required variables are not being passed to the object method like they are to the subroutine in the same package. (See my example below) Is there an issue with my code or is there a bug in NetSNMP? #!/usr/bin/perl # use

Re: How to register OIDs from an Object with the Agent when running embedded

2011-09-18 Thread Jon Jon
Hello Dave, Thanks for your response, I think perhaps there is an issue with the way in which I am registering my plugin modules. After looking over you response and comparing my original version vs my new version, I don't think I am even getting that far in my program execution. When I execute:

Re: How to register OIDs from an Object with the Agent when running embedded

2011-09-15 Thread Dave Shield
On 14 September 2011 18:30, Jon Jon wrote: >     my ($handler, $registration_info, $request_info, $requests) = @_; > >     my $this_request = $request->next(); > When run I get the following error: > Can't call method "next" on an undefined value at > /root/snmp_monitor/trunk/SNMPMonitor/Plugin

How to register OIDs from an Object with the Agent when running embedded

2011-09-14 Thread Jon Jon
Hello All, I am not sure if this is really the right place to ask, if it isn't could you please point me to the right place to ask? Anyway, I am working on building a Perl based pluggable architecture for my custom SNMP monitors. The problem I am having is registering my OIDs and their related su