Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Monitoring openvz resources using rrdtool

20 bytes removed, 16:24, 10 July 2008
VPS -> container; simplify getting the list of CTs using vzlist
done
VPSIDS=$(vzlist | awk ' BEGIN { ORS=" "; getline } { print $1 }'-H -o veid)
PARAMS=$(cat /proc/bc/0/resources | awk '{ print $1 }'| sort -u | xargs)
send - use this to send commands to rddtool
== Migration and new vps container ==
When you have this script running in cron on every hardware node and you're migrating a vps container from one node to the other the script will automatically detect this and pick it up on the other node.
When you create a new vps container you have to run <code>ubc_rrd_collect.sh init send</code> and it will ping rddtool to create a new rrd database. It won't overwrite existing databases because it first checks if a database already exists.
=== Setting up cron ===