MongoDB failure detection

Hi, I’m developing a Angular-meteor application and need to show server/DB status in the GUI. Is there a way to detect a MongoDB failure (for e.g. DB offline) from the client side (GUI) ?