Having been involved in contracting for security services for a while I can tell you that the security firms (Brinks, Wackenhut, Pinkerton, etc.) are not entirely to blame for the low quality of the security staffers we all see. These companies would like to sell the highest quality, well trained, motivated staff. This would mean more money and bigger margins for them. Unfortunately, most of the companies contracting for these services look upon them as an expense that may never even be needed. It is certainly not a profit center for the organization contracting the service. Most of these contracts are competitively bid and usually go to the low bidder. It is often a menu option system where you can pick and choose what options you want from uniforms to carry weapon systems.
At the complex where I work we have fences with razor wire, multi-unit cctv, vehicles, motion sensors and other technology to defeat the potential problems, but even without high dollar contract security the big expense is always what is paid per hour for staffing. Don't blame the Barny Fifes, that is probably all the customer will pay for.