[mrtg] graph temperature
Richard Gliebe
richard.gliebe at fhv.at
Wed Apr 12 15:38:14 MEST 2006
Hi all,
little question,
is it possible to graph the temperature from our cisco and foundry
switches with mrtg ? (OID's are known from nagios)
I've created the config files like this:
[...]
#!/bin/sh
/usr/local/bin/cfgmaker --global 'WorkDir: /usr/local/etc/mrtg/www' \
--global 'Options[_]: bits,growright' \
--output /usr/local/etc/mrtg/$1.cfg \
--show-op-down --ifdesc=descr --subdirs=HOSTNAME \
<community>@$1
[...]
and the index files like this:
[...]
#!/bin/sh
switches='switch-1 switch-2 switch-3'
for i in `echo $switches`;do
indexmaker --output /usr/local/etc/mrtg/www/$i.html --columns=2 \
--headlevel=2 --title=" " --perhost \
--compact /usr/local/etc/mrtg/$i.cfg
done
[...]
thanks in advance
Richard
--
Richard Gliebe
Fachhochschule Vorarlberg GmbH / University for Applied Science
Information Services
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list