1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/bin/sh
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
if [ "$1" = "config" ]; then
echo 'graph_title Espace disque'
echo 'graph_args --base 1000 -l 0 '
if [ -n ${graph_period} ]; then
echo 'graph_period '${graph_period}
fi
echo 'graph_vlabel requests / ${graph_period}'
echo 'graph_category Disque'
echo 'root.label /'
echo 'root.info Compte /'
echo 'root.type DERIVE'
echo 'home.label /home'
echo 'home.info Compte /home'
echo 'home.type DERIVE'
echo 'inbox.label /home/inbox'
echo 'inbox.info Compte /home/inbox'
echo 'inbox.type DERIVE'
exit 0
fi
echo -n "root.value " && du -s /
echo -n "home.value " && du -s /home
echo -n "inbox.value " && du -s /home/inbox |