<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New">Hi all,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">I have a problem with MRTG once more.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">My setup is MRTG on a linux server, gathering data
from a solaris server.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">I have a cron job running on the solaris machine
which creates 4 files. Each file has a 4 line output as specified by MRTG
(in/out/uptime/name). </FONT></DIV>
<DIV><BR><FONT face="Courier New">The problem is when MRTG runs I get an error.
It seems to not be able to read the output files correctly. </FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">
<DIV><FONT face="Courier New">I am pointing MRTG at the files by giving it a
target line of (for example)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">Target[server_memswap]: `more
/apps/mrtg-2.8.8/exports/server/vmstatscript.out`</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">Where the .out file is the 4 line output I
mentioned above.</FONT></FONT><FONT face="Courier New"></FONT></DIV></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">A typical error message reported by cron is
:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">Problem with Externale get '`more
/apps/mrtg-2.8.8/exports/server/vmstatscript2<BR>.out`':<BR>
Expected an INTEGER for 'in' but got '::::::::::::::'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">Problem with Externale get '`more
/apps/mrtg-2.8.8/exports/server/vmstatscript2<BR>.out`':<BR>
Expected an INTEGER for 'out' but got
'/apps/mrtg-2.8.8/exports/ukrnoc1/vmst<BR>atscript2.out' </FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">In this particular case, if I run the 'more'
command manually it gives me the values with no problem. I cannot think where
the ::::::::::: is coming in! One other thing is that the values in these files
may not change from poll to poll. MRTG appears to be calculating the difference
between them and creating an average - which is zero - which is not what I
want. I experimented with both the 'absolute' option and the 'gauge' option
but neither seems to have any effect.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New">Any suggestions appreciated.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New"></FONT><FONT face="Courier New">Neil</FONT></DIV>
<DIV> </DIV></BODY></HTML>