Disk usage condition

7 views
Skip to first unread message

Josh French

unread,
Jul 8, 2008, 6:01:45 PM7/8/08
to god.rb
Does anyone have a working example for the :disk_usage condition? The
included tests pass, but under live use it seems to return OK no
matter what the actual disk use is. Here's my current config:

God.watch do |w|
w.name = "disk-usage"
w.start = "/bin/true"

w.lifecycle do |on|
on.condition(:disk_usage) do |c|
c.notify = 'developers'
c.interval = 5.minutes
c.mount_point = "/"
c.above = 80
end
end
end

I've also tried attaching that condition to another watch (one
monitoring a running process) and got identical results. I think this
question has come up on the list before... has anyone been able to use
the disk_usage condition as it was intended?

Thanks,
j
Reply all
Reply to author
Forward
0 new messages