diff --git a/plugins/disk/lvm_ b/plugins/disk/lvm_ index a24b093f..5d6ceb53 100755 --- a/plugins/disk/lvm_ +++ b/plugins/disk/lvm_ @@ -1,27 +1,48 @@ #!/bin/sh -# -# Script to monitor disk usage. -# -# By PatrickDK -# -# Parameters understood: -# -# config (required) -# autoconf (optional - used by munin-config) -# suggest -# -# Needs to be run as root, so the following needs to be added to the config: -# -# [lvm_*] -# user root -# -# $Log$ -# -# Magic markers (optional - used by munin-config and installation -# scripts): -# -#%# family=auto -#%# capabilities=autoconf suggest +# -*- sh -*- + +: << EOF +=head1 NAME + +lvm_ - Wildcard plugin for monitoring disk usage on LVM. Each Volume Group is graphed separately. + +=head1 CONFIGURATION + +This plugin needs to run as the root user in order to have permission to run lvs and vgs + + [lvm_*] + user root + +=head1 AUTHOR + +=over 4 + +=item * PatrickDK (Original Author) + +=item * Niall Donegan + +=back + +=head1 LICENSE + +Unknown license + + +=head1 MAGIC MARKERS + +=begin comment + +These magic markers are used by munin-node-configure when installing +munin-node. + +=end comment + + #%# family=auto + #%# capabilities=autoconf suggest + +=cut + +EOF if [ "$1" = "autoconf" ]; then if ! which lvs 2>/dev/null; then