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}
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"