Several measuring devices can prevent damage to a hydraulic system:
a filter maintenance indicator
a water content measuring device
a particle counter
See our article on HYDRAULIC CIRCUIT CONTAMINATIONS to learn more.