I heard someone say this on an English TV show recently and thought it interesting that they use the same expression we do. Looked it up and found out it is from Shakespeare's Hamlet when Marcellus sees the ghost of Hamlet's father, the king of Denmark. Literally it meant that something was wrong with the government of Denmark. Used loosely now, it means something is wrong or things are unsatisfactory.