Using audit for service monitoring...
A message that is not in the archive (sent off-list or not yet received): [email protected]
If I wanted to use the audit subsystem to log something like stale NFS handles, would this work?
# ESTALE == -13
auditctl -a exit,always -S all -F exit=-13
More importantly, is this an appropriate use of the audit subsystem, or should I be doing this some other way?
If this is the right way to do it, how can I easily determine which syscalls can return ESTALE? Using '-S all' seems wasteful...
Suggestions always welcome,
-RZ
Signature · 3 lines
Randy Zagar Sr. Unix Systems Administrator E-mail: [email protected] Applied Research Laboratories Phone: 512 835-3131 Univ. of Texas at Austin
Quoted 2 lines · Randy Zagar
More importantly, is this an appropriate use of the audit subsystem, or should I be doing this some other way?
Generally, the audit system is used for logging security relevant artifacts. But its been used for bootup readahead analysis, too. So, you could use it for this, but you might get more data than you want. Try it and see.
Quoted 2 lines
If this is the right way to do it, how can I easily determine which syscalls can return ESTALE? Using '-S all' seems wasteful...
Maybe you can try "auditctl -a exit,always -F perm=all -F exit=-13"
perm selects filesystem classes of syscalls.
-Steve