From: Enrique T. <enr...@gm...> - 2006-01-27 14:14:35
|
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'} =3D=3D 1) { local @myoid=3D ( 1,3,6,1,4,1 ); local @mytrap=3D ( 1,3,6,1,4,1,10000,1 ); $rv =3D $session->trap_request_send( encode_oid(@myoid), =20 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])]); } Thank you 2006/1/25, Enrique Toledano <enr...@gm...>: > Hi again, Jamie. > > I've seen you've included the support for SNMP-session in the 1.259 > release (you are incredibly fast!), but I can't see any changes in the > module (it still needs Net-SNMP). > > What I'm doing wrong? > > Thanks > > Wed, 25 Jan 2006 23:13:00 1100, Jamie Cameron <jca...@we...>: > > Hi Enrique, > > No, there is no way to run SQL from a file at the moment .. only a fixe= d SQL command entered into the custom command. > > > > However, you could create a command that runs a program like 'mysql -u = user -ppass db <file' .. that would have the same effect. > > > > - Jamie > > > > -----Original Message----- > > > > From: Enrique Toledano <enr...@gm...> > > Subj: Re: [webmin-l] SNMP on System and Server Status > > Date: Wed 25 Jan 2006 6:13 pm > > Size: 2K > > To: web...@li... > > > > Thank you very much, Jamie! > > > > Another question: > > > > In the "Custom Commands" module, is there (or is going to be) a way to > > select an SQL file to execute on a database? > > > > > > Thank you again > > > > > > > > > > 25 Jan 2006 09:36:26 +1100, Jamie Cameron <jca...@we...>: > > > On Wed, 2006-01-25 at 04:54, Enrique Toledano wrote: > > > > Hi all > > > > > > > > Jamie, this is a feature request: > > > > To use SNMP on the System and Server Status module, it's necessary = to > > > > install several perl modules, that can't be installed (or I don't k= now > > > > how to do it) on old versions of Perl. > > > > > > > > Have you considered to support the module from Simon Leinen "SNMP f= or > > > > Perl 5" to allow the use of this feature (It works on Perl 5 and it > > > > doesn't need other modules) on old perl versions? > > > > > > > > http://www.switch.ch/misc/leinen/snmp/perl/ > > > > > > I suppose it could be done, although the documentation on sending tra= ps > > > on that site is rather lacking. I should be able to put it into the n= ext > > > Webmin release. > > > > > > - Jamie > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g files > > > for problems? Stop! Download the new AJAX search engine that makes > > > searching your log files as easy as surfing the web. DOWNLOAD SPLUN= K! > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&d= at=3D121642 > > > - > > > Forwarded by the Webmin mailing list at web...@li...urcefor= ge.net > > > To remove yourself from this list, go to > > > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd- > > Forwarded by the Webmin mailing list at web...@li...urceforge= .net > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > > --- message truncated --- > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > > - > > Forwarded by the Webmin mailing list at web...@li...urceforge= .net > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > > |