[mrtg] Re: Temperature monitor

Williams, Garth gkwilliams at epcor.ca
Fri Jul 12 16:47:16 MEST 2002


Hi.  You CAN read from a script file if you have to.  Simply write a small
perl script to read the data from the file (it has to be in some sort of
standard delimited format).  Then you can read each field (as it were) from
each line and assign it to a variable, and as Alex stated then print it to
the screen.

The issue is more of a timing one.  How to coordinate the data output file,
and the script's reading of that file.

I mention this not to dispute Alex (Hi Alex!) but just to let you know that
there are ways to read from a text file and bring it into MRTG in case the
mechanism collecting the data has no other output choices.
 
g
> > 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:
> 
This e-mail contains confidential information that is proprietary to EPCOR
and its subsidiary companies in all respects. This information is intended
only for the person(s) named in the destination address. Distribution,
copying or disclosure is strictly prohibited. If you receive this e-mail in
error, please delete it immediately.

--
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