I'm trying to log the details of the programs that where failed due to the limit cap defined in the limits.conf. My initial plan was to do it using the audit system. The idea was to track the system calls related to limits in the limits.conf that where failed. However the problem with this approach is that, it's not possible to track the violations of CPU time, since that violation doesn't involve failure of system calls. In the case of CPU time, one thing happens is that the program which violated the CPU time will be delivered a SIGXCPU. So my questions are:How should I go about logging the programs that violated CPU time? Also is there any limits.conf specific logs available?
Logging violations of rules in limits.conf
linux;logs;administration;audit