And often it lays under the tree, vaguely gazing in all directions and just barks.
Sounds like that dog does not get enough attention and exercise. I have 3GSD's and you will not know it unless you see them. Only time they bark is if there is somebody they do not know on my property. They will not even bark if a stranger stands at the gate, they never chase their food away....