Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Setting UBC parameters

28 bytes added, 22:43, 5 December 2013
Are you aware of a script that would run as a cron job and do the OOM math on a regular basis and email me if I've hit the red zone or maybe at 85-90%?
#!/bin/bash
# Openvz Containers Memory Status
# Version 0.89
# Reference: http://wiki.openvz.org/Setting_UBC_parameters
# Under any change please notify me
# rojoblandino@yahoo.com
 
# Advantages or changes:
# 2) Percentage Calculation.
# 3) Avoid simples wrong characters and out of range entry.
# 4) Use the same same order of vzlist output.# 5) Problems on vzid param mistakes fixed.
# The usage of this script is easy.
# Avoiding another mistake maybe the user forgot the quantity of vm allocated
if let "vm_param<1" || let "vm_param>n";then
echo "Container out of range, please try a number between 1 and "$n
exit