#!/bin/sh

if [ "$1" = "config" ]; then
        echo 'host_name pulsar.crans.org'
	echo 'graph_category Environnement'
	echo 'graph_title Hygrometrie 0B'
	echo 'graph_vlabel Humitidé (%)'
	echo 'hygro.label Humidité 0B'
	exit 0
fi

cmd="snmpget -O vq -v1 -c public pulsar.adm.crans.org SNMPv2-SMI::enterprises.705.1."

t=$(${cmd}8.2.0)
echo "hygro.value $(($t/10)).$(($t%10))"
