bin/check-snmp-disk.rb in sensu-plugins-snmp-0.1.0 vs bin/check-snmp-disk.rb in sensu-plugins-snmp-0.2.0

- old
+ new

@@ -93,11 +93,11 @@ base_oid = '1.3.6.1.2.1.25.2.3.1' dev_desc_oid = base_oid + '.3' dev_size_oid = base_oid + '.5' dev_used_oid = base_oid + '.6' begin - manager = SNMP::Manager.new(host: "#{config[:host]}", - community: "#{config[:community]}", + manager = SNMP::Manager.new(host: config[:host].to_s, + community: config[:community].to_s, version: config[:snmp_version].to_sym, timeout: config[:timeout].to_i) response = manager.get_bulk(0, 200, [dev_desc_oid]) dev_indexes = [] response.each_varbind do |var|