1 There are many open source server monitoring software such as cacti and nagios .
2 So if thee are issues on the server at some time, you can check the logs directly for that time.
3 Besides these, can we write our own shell scripts to monitor them?