Is there a way to see the logs of services as to when they were stopped or their PIDs were killed?
For example,
Nagios is alerting:
Code:
PROCS CRITICAL: 0 processes with command name 'nsca'
I see on the server:
Code:
# /etc/init.d/nsca status
nsca dead but pid file exists
The PID file is here:
Code:
# ls -l nsca.pid
-rw-r--r-- 1 nagios nagios 6 Jun 13 07:26 nsca.pid
# cat nsca.pid
32533
# ps up 32533
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
# grep 32533 /var/log/messages
#
So, I can see the process was started on 6th June but can't determine when it was stopped / killed.