[mrtg] Calling an external program (mrtg 2.8.9)

Doroff, Phil PhilD at in-net.net
Thu Jan 6 02:58:13 MET 2000


	Hey, first off great program to the author, and thanks for the help
in advance to all those on the list..  Hopefully I'm not asking something
that you've all been though a million times.  I did do a rather quick scan
of the archives, but I could have easily missed it..

I'm having trouble calling a simple perl script I wrote to nab my CPU
tempatures, and have mrtg graph them..

nature of the error is such:

Problem with Externale get '`/mrtg/temp.pl`':
    Expected an INTEGER for 'out' but got '27.5'

does that for both in and out..

my output from the perl script is:
(in code)
print "$temps{cpu0}\n";
print "$temps{cpu1}\n";
print "a very long time\n";
print "velocity.five-elements.com\n";

and how it looks...
--- snip ---
26.0
27.0
a very long time
velocity.five-elements.com
--- snip ---
 
And last but not least my config file...

WorkDir: /www/noc/htdocs/mrtg/temps
##################################################
Target[Velocity.CpuTemps]: `/mrtg/temp.pl`
MaxBytes1[velocity.cputemps]: 130
MaxBytes2[velocity.cputemps]: 130
Title[Velocity.CpuTemps]: Velocity CPU Tempuratures
PageTop[Velocity.CpuTemps]: <H1>CPU Temps</H1>
 Represents CPU Temps in degrees Celcius<P>
##################################################

I know it can be spruced up a bit, but I believe it should at least be
enough to start graphing?  *shrug*

the top line of the log files logs the two correct temps, but everything
underneath it remains a 0 0 0 0 across the board..

any help would be greatly appreciated, thanks much!

Phil Doroff
Systems Administration, Five Elements Inc.
phil21 at five-elements.com


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg



More information about the mrtg mailing list