What steps can be taken to debug frequent server crashes with a 502 bad gateway error in cloudmon?

What steps can be taken to debug frequent server crashes with a 502 bad gateway error in cloudmon?

1. Check the status of the MongoDB and server using the following commands:

To check MongoDB status: service mongod status.
To check server status: service cloudmon-controller@server status.

If either of them is inactive, restart them using the following commands:

To restart MongoDB: service mongod restart.
To restart the server: service cloudmon-controller@server restart.

2. Check the disk utilization. If the disk utilization is high, it may cause issues. In such cases, clear old/unwanted logs to free up disk space.