Discourse health check function

Most of this is not Discourse specific, so would fall under “normal Linux monitoring” more or less