2009-01-13 09:07:08

by Prateek Donni

[permalink] [raw]
Subject: A kind of file monitor

Hey guys , i needed some help on building a file monitor which
monitors alll file accesses and manages historical data of the same,
kindly tell if 'inotify' can be good enough for the same


2009-01-13 23:09:41

by Valdis Klētnieks

[permalink] [raw]
Subject: Re: A kind of file monitor

On Tue, 13 Jan 2009 14:35:05 +0530, Prateek Donni said:
> Hey guys , i needed some help on building a file monitor which
> monitors alll file accesses and manages historical data of the same,
> kindly tell if 'inotify' can be good enough for the same

You may or may not be better served looking at the audit subsystem, but
it's unclear what you need. Some things you have to consider:

1) Do you want all reads/writes, or is open/close/mmap sufficient?
2) What latency do you need? Does the monitor need to deal with it in
real time (the same second or so), or is "auditd writes to a logfile and
we read it from a cron job" good enough?
3) What are the penalties/failure modes if you fail to capture an access event?


Attachments:
(No filename) (226.00 B)