MacBook Pro mini displayport to DVI D doesn't show anything on the Compaq 2021 monitor
If you were using vga before, the monitor may not take digital input. DVI-D is digital only. VGA is analogue. 

Try using a DVI-A or similar analogue signal.