#!/bin/bash # -*- sh -*- : << =cut =head1 NAME lxc_cpu - Plugin to monitor LXC CPU usage =head1 CONFIGURATION [lxc_*] user root =head1 INTERPRETATION This plugin needs root privilege. =head1 AUTHOR vajtsz vajtsz@gmail.com mitty mitty@mitty.jp (many changes schaefer@alphanet.ch) =head1 LICENSE 2-clause BSD License or GPLv3 license, at your option =head1 MAGIC MARKERS #%# family=auto #%# capabilities=autoconf =cut . $MUNIN_LIBDIR/plugins/plugin.sh . $MUNIN_LIBDIR/plugins/lxc-lib active_guests=$(active_guests) if [ "$1" = "autoconf" ]; then lxc_autoconf fi if [ "$1" = "config" ]; then cat <