Firefighters from Glossop were called to a radio mast on fire on the A57 - Snake Pass.
The crew had received reports from eyewitnesses that there was smoke billowing from an underground site on Saturday, July 18.
The servicemen accessed the underground pit where the generator was housed.
The generator was turned off and the crew extinguished the flames.
An engineer also attended the scene.