lib/zabbix-ruby-client/plugins/disk.rb in zabbix-ruby-client-0.0.5 vs lib/zabbix-ruby-client/plugins/disk.rb in zabbix-ruby-client-0.0.6
- old
+ new
@@ -26,10 +26,15 @@
back << "#{host} disk[#{dev},time_waiting_read] #{rawait}"
back << "#{host} disk[#{dev},time_waiting_write] #{wawait}"
back << "#{host} disk[#{dev},service_time] #{svctm}"
back << "#{host} disk[#{dev},percent_util] #{util}"
return back
+ end
+ def discover(*args)
+ device = args[0]
+ mount = args[1]
+ [ "disk.dev.discovery", "{\"{#DISK_DEVICE}\": \"#{device}\", \"{#DISK_MOUNT}\": \"#{mount}\"}" ]
end
end
end
end