Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am looking for a tool that could ease tracking of file modification times of a number of files/directories placed on NFS mounts.

The idea is that in a multi-user environment where some files are (sporadically) prone to be changed, it is sometimes difficult (as a user of these files, not their provider) to find out that something happened to them. Things might break or change, it would be great to be able to be notified when important files are modified.

The files are stored on an NFS share, so inode-like solutions are a no go. I know, I know, a cron service would do the job, but I am looking for an existing solution that would be easy to use by particular users.

I imagine the user-side like this: a user "adds" a file or a directory to be tracked. On a random day, another user changes the content of the directory or a file. The modification is noticed by the system and the user (who registered to be notified) receives an email about this.

Thanks!

share|improve this question

closed as not constructive by Chris S Mar 25 '13 at 13:08

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Are you wanting to run this on the server exporting the NFS volumes, or on the NFS clients? –  mgorven May 9 '12 at 1:23
    
On the NFS clients. Ideally, any user should be able to launch a service on his own computer. And this computer would mount NFS shares from multiple NFS servers. –  ronszon May 11 '12 at 14:02
    
Try this: splitbrain.org/blog/2011-01/… –  quanta Jun 8 '12 at 10:44
    
That's more or less what I am looking for, but depends on inode... Will not work on multiple NFS shares... –  ronszon Jun 13 '12 at 7:51
    
Shopping Questions are Off-Topic on any of the Stack Exchange sites. See Q&A is hard, lets go Shopping and the FAQ for more details. –  Chris S Mar 25 '13 at 13:09

2 Answers 2

You can use inotify cron system ( http://inotify.aiken.cz/?section=incron&page=about&lang=en ) installed on the nfs server in order to track file modifications.

share|improve this answer
    
That's the thing... no access to NFS servers, so no inode-based solutions... –  ronszon Jun 13 '12 at 7:50

You should look after auditd daemon and linux accounting. It can log all changes, but beware - on a heavy load production system with many reads/writes it'll eat pretty much of the CPU/disk resources.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.