It is real my friend..
who told you that Hamlet is hallucinating?!..
he suspect in himself and in his mind but he never halluciate..
this link will help you in analyzing this play..
- For Teachers