Hello everyone

Has anyone managed to get god to send them an email when a certain
amount of space has been used on the system using disk_usage?

I'm pulling my hair out here :-).

#Watching the disk space
God.watch do |w|
  w.name = 'disk_space'
  w.interval = 2.minutes
  w.start = ''

  w.lifecycle do |on|
    on.condition(:disk_usage) do |c|
      c.above = 30
      c.mount_point = '/dev/sda1'
    c.notify = "matt"
    end
  end
end

god log says it's ok, but I'm using 34 percent of that mount point, I
ran the line from the actual ruby file to check

df | grep -i "/dev/sda1" | awk '{print $5}' | sed 's/%//'

that comes back with 34

any help would be greatly appreciated
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/god-rb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to