Skip to contentSkip to conversation

Using audit for service monitoring...

DISCUSSION Randy Zagar 2 participants 2 messages Sep 28, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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
#2 lore raw
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