The electroexplosive devices(EED) are widely used in the core system of rocket, missile and nuclear weapons. Hazard analysis and measurement of electromagnetic pulse is of great importance to the security and reliability of EED. In this article, an optical-fiber fluorescence temperature sensor is proposed for analyzing hazard induced by electromagnetic pulse of EED. The temperature of EED can be measured through the fluorescence lifetime, then the induced current is obtained, and thereby the electromagnetic pulse induced hazard can be draw. The experiments show that, the set-up of this proposal can works with high precision and fast response, and immune to the electromagnetic interference.