Quote Originally Posted by Dogboy182
что за is just a way of asking "what is" and it uses the nominative.

эй слишь? Чё за песня? - Hey guy, what song is that?
So the proper translation should be
Что за блажь, что за напасть:
What is a whim , what is a misfortune: