Changes

Jump to: navigation, search

Monitoring openvz resources using munin

1,389 bytes added, 06:32, 31 August 2011
Undo revision 10871 by 217.195.167.74 (Talk)
[[Category: Monitoring]]
[http://exchange.munin-monitoring.org/plugins/openvzcpu/details There is a plugin available on the Munin Exchange web site] which tracks CPU usage accross different containers. [http://exchange.munin-monitoring.org/plugins/openvz_/details A second is also available via the Munin plugin exchange] which tracks beancounter values. Additionally, there are several plugins available on this page to monitor beancounter values in [http://munin.projects.linpro.no/ Munin].The third one tries to combine the other two. (FIXME, maybe these should live in the Munin Exchange too?)
= "Simple" munin plugin =
done
if [ "$STATSCNT" == "1" ]; then
echo maxheld.label Maxheld
echo maxheld.draw LINE2
echo $name".value "$value;
if [ "$STATSCNT" == "1" ]; then
echo maxheld.value $top
echo barrier.value $warn
= Notes Alternative: Using vzlist =This simple script will generate an overview of the requested stat from all VE's.When using vzlist your saved from any changes to the beancounters. == Usage == Another plugin, using vzlist Simply append the variable you want to monitor:<source lang="bash">ln -s /usr/share/munin/plugins/openvz_ /etc/munin/plugins/openvz_physpages</source> <source lang="bash">#!/bin/sh#There is another # Munin's plugin available at to monitor OpenVZ bean counters.## $Log$# 2008/08/14 Rene Weselowski <http://muninexchangewww.projectsdead.linpro.noat>##%# family=auto#%# capabilities=autoconf ATTRIBUTE=`basename $0 | sed 's/^openvz_//?view&phidg'`  if [ "$1" =249 "autoconf" ]; then echo yes exit 0fi if [ "$1" = "config" ]; then echo "graph_title $ATTRIBUTE" echo "graph_args --base 1000 - using l 0" echo "graph_scale yes" echo "graph_vlabel $ATTRIBUTE Value" echo "graph_category openvz" echo "graph_info This graph shows OpenVZ: $ATTRIBUTE" vzlist and PHP-a -H -o hostname | awk '{gsub(/\./,"_",$1)Especially using print("'$ATTRIBUTE'"$1".label "$1"\n" \ "'$ATTRIBUTE'"$1".info '$ATTRIBUTE' for VE"$1)}' exit 0fi vzlist-a -H -o hostname,$ATTRIBUTE | awk '{gsub(/\./,"_",$1) print("'$ATTRIBUTE'"$1" to only gather the requested fields might be a faster approach.value "$2)}' </source>
Anonymous user

Navigation menu