2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
This commit is contained in:
bAndie91 2012-12-31 15:46:43 +01:00
parent bffbc3d5dc
commit 18648443f3

View File

@ -63,20 +63,23 @@ fi
if [ "$1" = "config" ]; then if [ "$1" = "config" ]; then
echo "graph_category disk" echo "graph_category disk"
args="-l 0"
case "$plugin" in case "$plugin" in
mounts) mounts)
echo "graph_vlabel times" echo "graph_vlabel times"
echo "graph_title Ext2 Filesystem mount details" echo "graph_title Ext2 Filesystem mount details"
;; ;;
checked) checked)
echo "graph_vlabel seconds" echo "graph_vlabel days"
echo "graph_title Ext2 Filesystem fsck interval" echo "graph_title Ext2 Filesystem fsck interval"
;; ;;
writes) writes)
echo "graph_vlabel GB" args="$args --base 1024"
echo "graph_vlabel bytes"
echo "graph_title Ext2 Filesystem lifetime writes$blkdevAppend" echo "graph_title Ext2 Filesystem lifetime writes$blkdevAppend"
;; ;;
esac esac
echo "graph_args $args"
if [ -z "$blkdev" ]; then if [ -z "$blkdev" ]; then
lse2 lse2
@ -93,15 +96,18 @@ if [ "$1" = "config" ]; then
echo "${name}_maxmounts.draw LINE1" echo "${name}_maxmounts.draw LINE1"
;; ;;
checked) checked)
echo "${name}_last.label Seconds since checked$blkdevAppend2" echo "${name}_last.label Since checked$blkdevAppend2"
echo "${name}_last.draw LINE2" echo "${name}_last.draw LINE2"
echo "${name}_last.cdef ${name}_last,86400,/"
echo "${name}_interval.label Check interval$blkdevAppend2" echo "${name}_interval.label Check interval$blkdevAppend2"
echo "${name}_interval.draw LINE1" echo "${name}_interval.draw LINE1"
echo "${name}_interval.cdef ${name}_interval,86400,/"
;; ;;
writes) writes)
echo "${name}_writes.label Lifetime writes$blkdevAppend2" echo "${name}_writes.label Lifetime writes$blkdevAppend2"
echo "${name}_writes.type COUNTER" echo "${name}_writes.type GAUGE"
echo "${name}_writes.draw LINE2" echo "${name}_writes.draw LINE2"
echo "${name}_writes.cdef ${name}_writes,1073741824,*"
;; ;;
esac esac
done done
@ -135,3 +141,4 @@ while read name mounts maxmounts last interval writes; do
;; ;;
esac esac
done done