A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.
Best System Monitoring tools
I’m interested in monitoring the processes running in a Linux system and determining when they are stuck/running endlessly very quickly.
Once I determine this, I also want to take on some actions (like dumping some debug info, restarting the process, etc..).
I know I can detect stuck processes using systemd, but unfortunately I wasn’t able to take action (where can I specify a script that I want to run when some process heartbeats are missed ?)