[mrtg] Re: Temperature monitor

Punit Nakar nakarp at eng.fsu.edu
Fri Jul 12 19:22:59 MEST 2002


Hi Mr Alex,
I rectified the error i wrote to you about in my last email. This time i am
getting a new error:


C:\mrtg\bin>perl mrtg mrtg.cfg
Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
Invalid function

My log file now shows:
1026494187 24 24
1026494187 24 24 24 24
1026494138 24 24 24 24
1026494100 24 24 24 24
1026493800 24 24 24 24
1026493500 24 24 24 24
1026493200 24 24 24 24
1026492900 24 24 24 24

The graph does show some readings at 24, but i am not sure whether it is
plotting correctly. I think i must monitor it for some more time. Can you
think of somethg, as to why it is showing 'invalid function' ? It shows this
error after every 5 mins.

Thank you. I have troubled you very much so far.

Punit
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Alex van den Bogaerdt
Sent: Thursday, July 11, 2002 7:06 PM
To: Punit Nakar
Cc: MRTG users
Subject: [mrtg] Re: Temperature monitor



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

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