[mrtg] Problems with external program in MRTG

Sverre Munthe sm at lorstem.no
Tue Oct 28 17:28:16 MET 2003


I have a cfg file like this:

---------------------------
WorkDir: c:\mrtg\data
EnableIPv6: no

Target[TEST-mail]: `c:\mrtg\bin\kix32 c:\mrtg\bin\mail.kix`
MaxBytes[TEST-mail]: 500
AbsMax[TEST-mail]: 500
Title[TEST-mail]: TEST: Mail
PageTop[TEST-mail]: <H1>TEST: Mail</H1>
WithPeak[TEST-mail]: ymwd
Options[TEST-mail]: gauge
YLegend[TEST-mail]: round trip time 
ShortLegend[TEST-mail]: secs
---------------------------

The kix script I run returns 4 values:

---------------------------
240
240
10
Test
---------------------------

And MRTG returns this error message:

---------------------------
C:\mrtg>perl .\bin\mrtg .\cfg\test.cfg
WARNING: Could not get any data from external command 'c:\mrtg\bin\kix32
c:\mrtg
\bin\mail.kix'
Maybe the external command did not even start. ()

WARNING: Problem with External get 'c:\mrtg\bin\kix32
c:\mrtg\bin\mail.kix':
   Expected a Number for 'in' but nothing'

WARNING: Problem with External get 'c:\mrtg\bin\kix32
c:\mrtg\bin\mail.kix':
   Expected a Number for 'out' but nothing'

ERROR: Target[test-mail][_IN_] ' $target->[0]{$mode} ' did not eval into
defined
 data
ERROR: Target[test-mail][_OUT_] ' $target->[0]{$mode} ' did not eval
into define
d data
WARNING: Skipping Update of test-mail, inlast is not defined
WARNING: Skipping Update of test-mail, outlast is not defined
---------------------------

What am I doing wrong? Is it the KIX script that doesn't return the
values in a way MRTG understands?

I've tried:

Quit(cstr($diff1)+ at crlf+cstr($diff2)+ at crlf+"10"+ at crlf+"test")

As well as:

val($diff1)
?
val($diff2)
?
val("10")
?
"Test"

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