The electronic structure of an octane film grown on Cu(111) and Ni(111) was studied using C K-edge near edge X-ray absorption fine structure (NEXAFS). A pre-peak was observed on the bulk edge onset for the 1 ML thick octane films on the metal substrates. The pre-peak originated from metal-induced gap states (MIGS) in the band gap of octane. The intensity of the pre-peak for octane/Ni(111) was the same as that of octane/Cu(111), suggesting that there was little difference in the density of unoccupied MIGS between the octane film on Ni (111) and Cu(111). We discuss the metal dependence of the density of unoccupied MIGS on the band structure of the metals.