Condition monitoring system for machines