mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Initial version
This commit is contained in:
parent
a08b091ca9
commit
1e85a671bc
1 changed files with 56 additions and 0 deletions
56
plugins/other/weight_of_a_lpar
Executable file
56
plugins/other/weight_of_a_lpar
Executable file
|
@ -0,0 +1,56 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Copyright (C) 2006 Jens Schanz
|
||||||
|
#
|
||||||
|
# Plugin to monitor the weight of an uncapped LPAR
|
||||||
|
# on a power5 system for linux
|
||||||
|
#
|
||||||
|
# Parameters:
|
||||||
|
#
|
||||||
|
# config (required)
|
||||||
|
# autoconf (optional - used by munin-config)
|
||||||
|
#
|
||||||
|
# $Log: lop5-weight.sh,v $
|
||||||
|
# Revision 1.1 2006/12/08 10:08:33 schanz
|
||||||
|
# *** empty log message ***
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Revision 1.0 20.11.2006 - first build
|
||||||
|
#
|
||||||
|
# If you have any suggestions, questions, or enhancements, feel free to email
|
||||||
|
# me at mail@jensschanz.de
|
||||||
|
#
|
||||||
|
# Let's go ...
|
||||||
|
#
|
||||||
|
# Magick markers (optional - used by munin-config and some installation
|
||||||
|
# scripts):
|
||||||
|
#%# family=auto
|
||||||
|
#%# capabilities=autoconf
|
||||||
|
|
||||||
|
LPARCFG=/proc/ppc64/lparcfg
|
||||||
|
|
||||||
|
# check input parameters
|
||||||
|
if [ "$1" = "autoconf" ]; then
|
||||||
|
echo yes
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "config" ]; then
|
||||||
|
echo 'graph_title Weight of an uncapped LPAR'
|
||||||
|
echo 'graph_args -l 0'
|
||||||
|
echo 'graph_category Power5'
|
||||||
|
echo 'graph_vlabel Weight of LPAR'
|
||||||
|
echo 'graph_info This graph shows the weight of an uncapped LPAR'
|
||||||
|
echo 'weight.min 0'
|
||||||
|
echo 'weight.max 255'
|
||||||
|
|
||||||
|
echo 'LparWeight.label weight'
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# let's do the main job
|
||||||
|
|
||||||
|
# get cpus in partition
|
||||||
|
echo -n "LparWeight.value "
|
||||||
|
cat $LPARCFG | grep capacity_weight | grep -v unallocated_capacity_weight | awk -F = '{print $2}'
|
Loading…
Add table
Add a link
Reference in a new issue