[mrtg] MRTG and Targets
Neil Calvert
ncalvert at cabletron.com
Thu Sep 16 22:03:59 MEST 1999
Hi all,
I have a problem with MRTG once more.
My setup is MRTG on a linux server, gathering data from a solaris server.
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).
The problem is when MRTG runs I get an error. It seems to not be able to read the output files correctly.
I am pointing MRTG at the files by giving it a target line of (for example)
Target[server_memswap]: `more /apps/mrtg-2.8.8/exports/server/vmstatscript.out`
Where the .out file is the 4 line output I mentioned above.
A typical error message reported by cron is :
Problem with Externale get '`more /apps/mrtg-2.8.8/exports/server/vmstatscript2
.out`':
Expected an INTEGER for 'in' but got '::::::::::::::'
Problem with Externale get '`more /apps/mrtg-2.8.8/exports/server/vmstatscript2
.out`':
Expected an INTEGER for 'out' but got '/apps/mrtg-2.8.8/exports/ukrnoc1/vmst
atscript2.out'
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.
Any suggestions appreciated.
Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.oetiker.ch/pipermail/mrtg/attachments/19990916/ff961124/attachment.html
More information about the mrtg
mailing list