[mrtg] Re: Temperature monitor
Alex van den Bogaerdt
alex at ergens.op.HET.NET
Fri Jul 12 01:06:10 MEST 2002
Punit Nakar wrote:
> Are you running this on a windows platform or unix/linux? I have been trying
That really shouldn't matter as far as mrtg is concerned.
> to use an external temp measuring device to plot the temp on a win98
> machine, but i am having some problem with reading the data from my text
> file. Can you tell me what program are you using to read data from your
> device.
Do not try to read data from a text file. That doesn't work. You
need to write a program that prints numbers on the screen.
Compare this with the "echo" command. A small batch file could look
like this:
@echo off
echo 100
echo 50
echo some host
echo quite some time
When you run this from mrtg (backticks!) and use the GAUGE option, it
should produce two horizontal lines: Target[x]: `c:/mrtg/batch.bat`
When this works, you're ready to write another program that outputs
the same way but this time with numbers you get from the sensor.
HTH
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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