Hi, From history it seems that as you are nor sexually active since long there might be having deposition of smegma on glans penis leading to some local infection and smelly discharge. There is other possibility of having urinary tract infection as well. Go for routine urine check up. Make a habit of cleaning smegma by averting fore skin while taking shower. Keep local hygiene well maintained. Take plenty of water. Ok and take care.