If the histogram mountain comes back down again at the left and at the right, your picture is not necessarily badly exposed. Making sure the mountain is in the middle is for perfectionists.
Generally if the mountain is too far to the left, add to the exposure compensation and retake the picture. If the mountain is too far to the right, deduct from the exposure compensation and retake the picture
Still, only you can judge the exposure. The mountain might be at the left meaning that a lot of shadow detail is buried, but the highlights you are specifically interested in are on the verge of blowing out if you increase the exposure. Or the mountain might be at the right meaning that lots of highlights are washed out but the shadows you are specifically interested in are on the verge of being buried if you decrease the exposure..
If you are using automatc exposure and you take the same picture again, if you don't aim precisely the same way, the histogram may ahve a vastly different shape because more or less bright and dark material is in the second picture.
If you have two mountains, one at the left and one at the right, take three pictures, one as-is, one with the left mountain more to the middle, and one with the right mountain more to the middle. Back at home, see which you like best, let alone use Photoshop
(tm) and combine the best parts of each.
Digital camera hints:
http://members.aol.com/ajaynejr/digicam.htm