Changes

Jump to: navigation, search

Monitoring openvz resources using munin

823 bytes added, 15:19, 14 August 2008
Added script which parses vzlist
= Notes Alternative: Using vzlist === Another plugin, 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. <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>
9
edits

Navigation menu