[mrtg] Re: file size graph

Bart Vandyck bart.vandyck at pandora.be
Tue Aug 13 09:24:13 MEST 2002



I would do it with an external script to retrieve the value

'***** START SCRIPT
sFileName = "c:\winzip.log"

set fs = CreateObject("Scripting.FileSystemObject")

set f = fs.Getfile(sFileName)
wscript.echo f.Size		'Echo File Size
wscript.echo f.size		'Echo File size
wscript.echo Now			'Echo time or nothing " "
wscript.echo SFileName
'******* END Script


Now in the target of your cfg file just call the script like this

Target[Dev01]: `cscript //nologo d:/mrtg/mrtg-2.9.18/scripts/sFileSize.vbs`

Watch out you have to type back quotes (`) not (')

rgds,

Bart


> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch
> [mailto:mrtg-bounce at list.ee.ethz.ch]On
> Behalf Of ±èµ¿±Õ
> Sent: dinsdag 13 augustus 2002 8:50
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] file size graph
>
>
> Hi, all
> I¡¯d like to monitor and draw a file size graph of a specific file on
> windows 2000 server.
> How can I work it out ?
>
> Thanks
>
> Dong K. Kim
>
> --
> 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
>
>


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