What all is connected to it?
Open console in Applications>Utilities, check the system log for the date/time of the last problem & the Startup right after that for clues.
Have you done a PRAM reset, CMD+Option+p+r...
In fact, do 3 in a row, takes a bit of time.
Intel-based Macs: Resetting the System Management Controller (SMC)...