#!/bin/bash # -*- sh -*- : << =cut =head1 NAME lxc_ram - Plugin to monitor LXC memory usage. =head1 CONFIGURATION [lxc_*] user root [lxc_ram] env.areastack true =head1 INTERPRETATION This plugin needs root privilege. If env.areastack is set to true, all memory usages of containers will be drawn as stacked area charts. This option changes graph order, all of 'Mem usage' comes first and then others. (default: false) =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) # configurable: true/false areastack=${areastack:-false} if [ "$1" = "autoconf" ]; then lxc_autoconf fi if [ "$1" = "config" ]; then cat <