|
From: Jamie C. <jca...@we...> - 2006-01-28 23:11:12
|
On Sat, 2006-01-28 at 01:14, Enrique Toledano wrote:
> Hi, Jamie
>
> There have been problems in the download section of the web, and I
> think last time I downloaded the version not changed. I have it now,
> but I still have problems.
> When I use the SNMP-session module, the traps does not include any
> variable, and they come with OIDs not defined.
>
> I think you've used wrong @oids in monitor.pl. Also, the generic trap
> must be 6 and not 2.
>
> I've made a working (but very bad) code to emulate the traps generated
> by the Net::SNMP in monitor.pl (for snmp version 1):
>
> if ($config{'snmp_version'} == 1) {
> local @myoid= ( 1,3,6,1,4,1 );
> local @mytrap= ( 1,3,6,1,4,1,10000,1 );
> $rv = $session->trap_request_send(
> encode_oid(@myoid),
>
> encode_ip_address(&to_ipaddress(&get_system_hostname())),
> encode_int(6), #generic trap
> encode_int(0),
> encode_timeticks(0),
> [encode_oid(@mytrap,1),
> encode_string($oids[2])]);
> }
Hi Enrique,
Thanks for the update .. I clearly wasn't calling that module's API
properly. The 1.260 release of Webmin will incorporate your changes..
- Jamie
|