There exists some high-level wrappers for system file events, for here it is an example of usage of Listen ruby gem:
Listen.to('some/path', 'some/another/path', :filter => [/\.tmp$/]) do |modified, added, removed|
...
end
Does there exist such thing for monitoring, for example, "permission denied" events?