[mrtg] Re: How to graph temperatures from snmp query

Kimmo Koivisto kimmo.koivisto at surfeu.fi
Tue Mar 15 22:03:13 MET 2005

On Tuesday 15 March 2005 21:51, Manny Ortega wrote:
> What are you graphing?

Room temperature from the basement :)

> Just curious as to what the tree is.
Im using that OID to execute my own scripts at linux-server with dallas 
temperature server. OID is from example for executing scripts with net-snmp.

> You say you get "23.4", I'm not sure how MRTG will handle decimals, but it
> doesn't hurt to try ;)

Yep, it seems that deciamals are some kind of problem :
ERROR: Target[kellari.temp][_IN_] ' $target->[8]
{$mode} ' evaluated to '      ᎈde9153' instead of a number

I could execute shell script which woud filter out decimals and return 
temperature, but how to use custom scripts? 

I tried like this:

Target[kellari.temp]: /usr/local/bin/mrtg-check-temp.sh

but got an error msg:

ERROR: Target[kellari.temp][_IN_] '/usr/local/bin/mrtg-check-temp.sh' (warn): 
(Missing operator before rtg?)
ERROR: Target[kellari.temp][_OUT_] '/usr/local/bin/mrtg-check-temp.sh' (warn): 
(Missing operator before rtg?)

Any hints how this could be done?

Kimmo Koivisto

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list