scripts/munin/apt-proxy
salles 384fdff0c4 Rcriture du script directement en shell, on viter les timeouts de munin
comme a.

darcs-hash:20060501061722-72cb0-a68f4d7a3ea38adce7bc31328ba1c961db0a7edd.gz
2006-05-01 08:17:22 +02:00

29 lines
760 B
Bash
Executable file

#! /bin/sh
# $Log: apt-proxy,v $
# Revision 1.2 2006-05-01 06:17:22 salles
# Réécriture du script directement en shell, on éviter les timeouts de munin
# comme ça.
#
#
# Must run on aptproxy user or root
#
if [ "$1" = "config" ]; then
echo "graph_title Files in apt-proxy cache"
echo "graph_args --base 1000 -l 0"
echo "graph_vlabel files"
echo "main.label main"
echo "main.info Packages in main"
echo "main.draw AREA"
echo "security.label security"
echo "security.info Packages in security"
echo "security.draw STACK"
exit 0;
fi
main="/pubftp/apt-proxy/debian/pool/main ";
security="/pubftp/apt-proxy/security/pool/updates/main ";
echo "main.value" `find $main -type f | wc -l`
echo "security.value" `find $security -type f | wc -l`