its probably a burner problem in that diesel is getting to the sparks but only lighting intermitantly causing it to smoke, it could be your spark plugs need a good cleaning or it might be a crack in one of them which stops it sparking properly could be other things too but this is a good place to start, but as BDCS says replace the fuel filter first.