;
$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
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-
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
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