An Agent Based System for Electrical Components Protection