[mrtg] External script produces no graphs

lazna at volny.cz lazna at volny.cz
Wed Jul 9 17:15:06 CEST 2008

I have temperature meter connected on serial port. Special software read
temperature every minute a write it into a file. I have created batch
which take temperature value, crop unwanted text around the value, than
write value (plain number) into text file and print out content of this
file into four lines as output. Than I put path to this script as target
into MRTG cfg file. The mrtg start as usual (without any error messages),
but day picture does not contain any data. I let it run for two hours
as daemon, but nothing. Any ideas???

OS W2k3
Perl 5.8.8
MRTG 2.16.2
logged as Administrator

Petr Laznovsky

The script:

@echo off
type c:\TM\data\teplota.txt | cut -c 22-23 > C:\work.txt
type c:\work.txt
type c:\work.txt
type c:\work.txt
type c:\work.txt

The script output:


More information about the mrtg mailing list