The `epidemiologic revolution' of the 1960s arose in response to the inability of reductionist methods to provide practical solutions to the complex problems of health and production in livestock systems. In a farm, there are not only interactions between animal factors and herd husbandry factors such as feeding, housing, and microbiological environment, but also with a number of other `non-animal' factors. For this reason, a `global' or `holistic' approach, aimed at explaining animal health status within the overall dynamic of a livestock production system, was developed in France under the title of `ecopathology'. In ecopathology, the discipline of epidemiology is integrated into a systemic approach, including: the development of a preliminary conceptual model, sampling based on the structure of the livestock production system, the establishment of a field study by a multidisciplinary team, the organization and management of the animal health and production information, data analysis, the distribution of results to all participants and the development of a preventive medicine programme. The farm is also influenced by the social, economic and environmental setting to which it belongs. To account for this, a change of scale is necessary. The three elements of the livestock production system considered in ecopathology (farmer, herd and resources), at the level of the agroecosystem become a human community (farmers, consumers, decision-makers), an animal population, and the complex of human, social and economic conditions within the system. The concept of agroecosystem health is closely linked to the overall principle of improving the sustainability of the system. This and other measures of the health status of an agroecosystem can be assessed with methods developed by epidemiologists and other disciplines within a system's perspective. In this systems view, ecopathology provides a basis for assessing herd health whereas agroecosystem health develops the broader context into which ecopathology contributes.