[mrtg] Re: file size graph

김동균 dongkkim at ncsoft.net
Tue Aug 13 09:57:07 MEST 2002


Thanks,
How about a remote windows2000 server ?
MRTG machine and windows2000 server are different machines.

Dong

-----Original Message-----
From: Bart Vandyck [mailto:bart.vandyck at pandora.be] 
Sent: Tuesday, August 13, 2002 4:24 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: file size graph



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

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