Boredom usually occurs when I lose interest in my surroundings and any potential activities. I hate boredom. Usually when I'm bored, I will either take a nap (if I have time to waste), surf the Web, watch youtube videos, or watch tv. I find that doing those activities eases the boerdom to some extent. Something else I'll do when I get bored is I'll put a reminder in my head that my boredom will not last forever. Usually if I spend too much time in the house, I'll easily get bored due to the lack of constant activity.
If I got out the house more, I wouldn't spend so much time being bored.
To answer your question, I think boredom is just a feeling, that occurs due to constant inactivity.