#! /bin/bash

key="$1"
value="$2"

if [ -x /usr/bin/agavesend ]; then
    /usr/bin/agavesend --fieldset $key --template $key --hostname `hostname -f` --title $key --values $key:$value
fi

if [ -x /usr/bin/gmetric ]; then
    /usr/bin/gmetric --name $key --value $value --type float
fi
