Extremely irregular period

So I  havent had my period since late August.  Today was the first day I had shown any signs of it and it was just moderate spotting. I haven't had sex in 3 years so there's no chance I'm preggers. What do you thinks going on?