OpenVZ UBC Parameter: Determining Resource Shortage

Ever had to stare at those maxheld, barrier, failcnt values in OpenVZ UBC Parameters in /proc/user_beancounters? Not anymore! Below script, taken from nagios plugin, will easily look through the /proc/user_beancounters file and list all UBC parameters that are under resource shortage. […]