All the old HPF ballasts have pcb oil in the capacitor. If it's not leaking an oily substance it not a hazard. A little tar leaking out shows it's probably been abused at one point by leaving dead lamps in or by using 34W lamps. They often last decades like that. Tar leaking is not a hazard.
A few months ago I picked a fixture out of the trash that had been used in a chlorine room for 25 years, very corroded. Original preheat ballast works great. Rest of the fixture will take some work.