Plague, the causative agent of three devastating pandemics in history, is currently a re-emerging disease, probably due to climate change and other anthropogenic changes. Without understanding the response of plague systems to anthropogenic or climate changes in their trophic web, it is unfeasible to effectively predict years with high risks of plague outbreak, hampering our ability for effective prevention and control of the disease. Here, by using surveillance data, we apply structural equation modelling to reveal the drivers of plague prevalence in two very different rodent systems: those of the solitary Daurian ground squirrel and the social Mongolian gerbil. We show that plague prevalence in the Daurian ground squirrel is not detectably related to its trophic web, and that therefore surveillance efforts should focus on detecting plague directly in this ecosystem. On the other hand, plague in the Mongolian gerbil is strongly embedded in a complex, yet understandable trophic web of climate, vegetation, and rodent and flea densities, making the ecosystem suitable for more sophisticated low-cost surveillance practices, such as remote sensing. As for the trophic webs of the two rodent species, we find that increased vegetation is positively associated with higher temperatures and precipitation for both ecosystems. We furthermore find a positive association between vegetation and ground squirrel density, yet a negative association between vegetation and gerbil density. Our study thus shows how past surveillance records can be used to design and improve existing plague prevention and control measures, by tailoring them to individual plague foci. Such measures are indeed highly needed under present conditions with prevailing climate change.