Cells, robots, organisations and software agents all keep themselves going against a changing environment, yet no measurable definition tells, for all of them alike, when such a system is doing well and why it is failing. Such a definition matters wherever life-like organisation is studied or built: in artificial life, which studies it in any medium, and in biology and engineering. We propose one, and it rests on energy. A system that maintains itself must pay for sensing, deciding, acting and repairing, and for the upkeep of the structure it has accumulated, out of the energy it can harvest. We combine this budget with an energy reserve and with the set of states from which the system can still keep itself within its limits using only the actions it can afford. Health is then five measurable conditions: the system can stay within its limits, its reserve covers its recent shortfalls, it needs no outside help, it can afford to adapt, and its own estimate of its energy margin is accurate. A system that has lost a part can still be healthy within its new limits. Failures fall into five types, each with its own signature. We test the framework in a minimal simulated agent. Feedback alone fails when disturbances outpace the agent's response, however strong that response is, and prediction wins when keeping fast capacity on standby is expensive. A diagnostic rule, fixed before its final test, warned of nearly every death and named the cause of most of the failures it flagged, more often than simpler baselines. The framework gives researchers and engineers a common way to measure and diagnose the health of self-maintaining systems, whatever they are made of.