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

2011-09-18 Thread Jon Jon
; $test->monitor(@_); } #Test 3: #this does not work my $reg_oid3 = new NetSNMP::OID($root_oid . ".3"); $agent->register('test3', $reg_oid3, $test->monitor); On Sun, Sep 18, 2011 at 4:00 PM, Jon Jon wrote: > Hello All, > > To further expound on my previous

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

2011-09-18 Thread Jon Jon
st = new Test; my $reg_oid2 = new NetSNMP::OID($root_oid . ".2"); # this works $agent->register('test2', $reg_oid3, \&test2); # this does not work: uncomment one line below to reproduce my error # $agent->register('test2', $reg_oid3, \$test->monitor()); # $agent-

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

2011-09-18 Thread Jon Jon
my $request; for($request = $requests; $request; $request = $request->next()) { print STDERR "In the handler"; $request->setValue(ASN_OCTET_STR, "Test Successful"); } } package main; my $plugin = Plugin->new(); my $reg_oid

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