The cooling device is a cooling device for cooling a predetermined device in which a plurality of components that generate heat during operation are built in the housing, and is provided inside the housing and takes air into the inside from the outside of the housing. A temperature detection unit arranged at a predetermined position in the vicinity of the opening formed so as to be capable of detecting the temperature around the predetermined position, and for cooling a plurality of components The cooling unit configured to perform the cooling operation, and the component temperature set for each of the plurality of components as the maximum temperature of the component that can be reached at the temperature detected by the temperature detection unit, guarantees the normal operation of the component. And a control unit that controls the cooling operation of the cooling unit so as not to exceed a maximum rated temperature set for each of a plurality of parts as a temperature corresponding to an upper limit value of the temperature.冷却装置は、動作時に発熱する複数の部品を筐体に内蔵した所定の装置を冷却するための冷却装置であって、筐体の内部に設けられ、筐体の外部から内部へ空気を取り込むことができるように形成された開口部の近傍における所定の位置に配置されているとともに、所定の位置の周辺の温度を検出するように構成された温度検出部と、複数の部品を冷却するための冷却動作を行うように構成された冷却部と、温度検出部により検出された温度において到達し得る部品の最大温度として複数の部品毎に設定された部品温度が、部品の正常動作が保証される温度の上限値に相当する温度として複数の部品毎に設定された最大定格温度を超えないように前記冷却部の冷却動作を制御する制御部と、を有する。