I found some Monitoring commands here. Could this be what you are looking for?
As for the tools that you would use to to track the problem, here s how I do it.
Nagios: I use nagios as a centralized monitoring system to check the health of each servers. It alerts me if somethings goes wrong. For example, I have alerts set for situations like if my response time to a API goes beyond a threshold value.
Monit: If something goes totally crazy, monit takes care of it. Suppose any component of my stack goes down. It alerts me and also bring it up for me.
Logstash: Any suspicious activity recorded in my logs, it lets me know.
SeaLion: Now all the above lets me know if there was a problem with my stack. But what caused the problem, I debug with SeaLion. I log the outputs of system profiling tools like sar, top, uptime, iostat, vmstat, netstat etc. Besides these commands you can setup the commands that you would require on SeaLion and it executes all these commands and shows it in a nice timeline format. Also installation and setup is extremely easy.
