That machine could be 7 years old.
When's the last time you cleaned it?

If the monitor is plugged into a video card plug it into the mobo and test.

If it shows the same problem test the monitor and cable on another pc.