From 722c224956fd279e65e2b59601db9fa76e88d104 Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Thu, 23 May 2013 17:29:09 +0200 Subject: [PATCH] plugins/backuppc: differential in size for full/incr --- plugins/backuppc/backuppc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/backuppc/backuppc b/plugins/backuppc/backuppc index e1836ef8..2d26198f 100755 --- a/plugins/backuppc/backuppc +++ b/plugins/backuppc/backuppc @@ -26,7 +26,8 @@ if [ "$1" = "config" ]; then for h in ${HOSTS} do - echo "${h}.label ${h}" + echo "${h}_full.label ${h} Full" + echo "${h}_incr.label ${h} Incr" done echo "multigraph backuppc_ages" @@ -37,8 +38,8 @@ if [ "$1" = "config" ]; then for h in ${HOSTS} do - echo "${h}_full.label ${h}" - echo "${h}_incr.label ${h}" + echo "${h}_full.label ${h} Full" + echo "${h}_incr.label ${h} Incr" done exit 0 @@ -47,8 +48,10 @@ fi echo "multigraph backuppc_sizes" for h in $HOSTS do - SIZE=$(awk '{ size = $6 } END { print size; }' ${PCDIR}/${h}/backups) - echo "${h}.value $SIZE" + SIZE=$(awk '/full/ { size = $6 } END { print size; }' ${PCDIR}/${h}/backups) + echo "${h}_full.value $SIZE" + SIZE=$(awk '/incr/ { size = $6 } END { print size; }' ${PCDIR}/${h}/backups) + echo "${h}_incr.value $SIZE" done echo "multigraph backuppc_ages"