With ruby, to be sexy: ino.rb #!/usr/bin/env ruby require 'rubygems' require 'pony' hostname = `hostname -f`.strip disk_usage = `df -i` disks = disk_usage.split(/\n/) disks.shift body = "" disks.each do |disk| disk = disk.scan(/(\w+|\W+\w+\b.*?) .* (\d+)% (.*)/)[0] body = body + "Device #{disk[0]} mounted on #{disk[2]} - #{disk[1]}%" + "\n" if disk[1].to_i > 80 end unless body.empty? Pony.mail(:to => 'you@example.com', :via => :smtp, :subject => "Houston, we have a problem at #{hostname}", :body => body, :via_options => { :address => 'smtp.gmail.com', :port => '587', :enable_starttls_auto => true, :user_name => 'user', :password => 'pass', :authentication => :plain, }) end Setup a cronjob and get notified when your inodes are over 80%




