# aMule shares plugin contributed by Andrea Gozzi (asgozzi@gbhtech.com).
#
#
# Magic markers - optional - used by installation scripts and
# munin-config:
#
#%# family=auto
#%# capabilities=autoconf
if [ "$1" = "autoconf" ]; then
if [ -z "$(which amule)" ]; then
echo "$0: error: amule not installed"
exit 1
else
if [ ! -e /tmp/amulesig.dat ]; then
echo "$0: error: amulesig.dat not found"
else
echo yes
exit 0
fi
fi
fi
if [ "$1" = "config" ]; then
echo "graph_title aMule shared files"
echo 'graph_info This graph shows the number of shared files on aMule .'
echo 'graph_info Plugin available at <a href="http://linux.andreagozzi.com/content/munin_stuff.php">http://linux.andreagozzi.com/content/munin_stuff.php</a>'