Reading the code, I can only conclude that a notification is done each time a condition evaluates to True. I can think of two options to overcome the problem of being spammed everytime, from within God. The first one is extending Task to check the ammount of the same messages already sent for a condition. This implies extending Condition to have a memory for the last send messages. The second option is creating a dummy watch which does a state transition from init to up if the disk usage is normal and does a transition back to init if the disk usage is excessive. Let these 2 conditions send you an email. Then you just get an email notification if the disk usage passes the threshold.
As an alternative you could use an other daemon such as collectd to send events on changing disk usage -- 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.
