Package: libsnmp-ruby1.8
Version: 0.4.1-2
Severity: normal
Tried running an example from the README:
[EMAIL PROTECTED] cat snmptest.rb
#!/usr/bin/ruby
require 'snmp'
SNMP::Manager.open(:Host => 'localhost') do |manager|
response = manager.get(["sysDescr.0", "sysName.0"])
response.each_varbind do |vb|
puts "#{vb.name.to_s} #{vb.value.to_s}
#{vb.value.asn1_type}"
end
end
[EMAIL PROTECTED] ./snmptest.rb
Could not find default MIB directory, tried:
/usr/share/ruby/snmp/mibs
/usr/lib/ruby/data/ruby/snmp/mibs
/usr/lib/ruby/1.8/snmp/mib.rb:153:in `initialize': No such file or directory -
/SNMPv2-MIB.yaml (Errno::ENOENT)
from /usr/lib/ruby/1.8/snmp/mib.rb:153:in `load_module'
from /usr/lib/ruby/1.8/snmp/manager.rb:309:in `load_modules'
from /usr/lib/ruby/1.8/snmp/manager.rb:309:in `each'
from /usr/lib/ruby/1.8/snmp/manager.rb:309:in `load_modules'
from /usr/lib/ruby/1.8/snmp/manager.rb:163:in `initialize'
from /usr/lib/ruby/1.8/snmp/manager.rb:172:in `open'
from ./snmptest.rb:5
Neither of those directories do exist. SNMPv2-MIB.yaml and others can be found
in /usr/share/doc/libsnmp-ruby1.8/yaml/ which is under doc. I have no real idea
what should be happening as I'm just looking at this, but it certainly stopped
me here. It would appear that either the thing is broken or it requires
something more than is apparent.
Running anything under /usr/share/doc/libsnmp-ruby1.8/examples/ seems to
produce same results.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_GB, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages libsnmp-ruby1.8 depends on:
ii ruby 1.8.2-1 An interpreter of object-oriented
libsnmp-ruby1.8 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]