2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

plugins/backuppc: differential in size for full/incr

This commit is contained in:
Steve Schnepp 2013-05-23 17:29:09 +02:00
parent 8e45b339de
commit 722c224956

View File

@ -26,7 +26,8 @@ if [ "$1" = "config" ]; then
for h in ${HOSTS} for h in ${HOSTS}
do do
echo "${h}.label ${h}" echo "${h}_full.label ${h} Full"
echo "${h}_incr.label ${h} Incr"
done done
echo "multigraph backuppc_ages" echo "multigraph backuppc_ages"
@ -37,8 +38,8 @@ if [ "$1" = "config" ]; then
for h in ${HOSTS} for h in ${HOSTS}
do do
echo "${h}_full.label ${h}" echo "${h}_full.label ${h} Full"
echo "${h}_incr.label ${h}" echo "${h}_incr.label ${h} Incr"
done done
exit 0 exit 0
@ -47,8 +48,10 @@ fi
echo "multigraph backuppc_sizes" echo "multigraph backuppc_sizes"
for h in $HOSTS for h in $HOSTS
do do
SIZE=$(awk '{ size = $6 } END { print size; }' ${PCDIR}/${h}/backups) SIZE=$(awk '/full/ { size = $6 } END { print size; }' ${PCDIR}/${h}/backups)
echo "${h}.value $SIZE" echo "${h}_full.value $SIZE"
SIZE=$(awk '/incr/ { size = $6 } END { print size; }' ${PCDIR}/${h}/backups)
echo "${h}_incr.value $SIZE"
done done
echo "multigraph backuppc_ages" echo "multigraph backuppc_ages"