[mrtg] WMI Script / LOG file

Simon ter Veen STVeen at RosenInspection.net
Thu Jul 24 09:49:12 MEST 2003


Hi...

I'd like to use a WMI Script from
http://www.snmp4tpc.com/mrtg_helpers.htm#WMI Scripts .
These scripts work fine. But when I take a look into the log file it
only enters the desired value into the first line. 
When I run mrtg again and again - only the latest value is entered - as
if the log is generated totally new each time...

Does anyone know how to produce a "normal" MRTG log file out of this
script?
I am using mrtg 2.9.25 on a W2K SP3 machine and I use wmi.freedisk.vbs.

any help is highly appreciated,
simon ter veen


My log file:
---------------------------------
1059031255 26336832 26336832
1059031255 0 0 0 0
1058970440 0 0 0 0
1058970300 0 0 0 0
1058970000 0 0 0 0
etc.


My CFG file:
--------------------------------
WorkDir: c:\FREEDISKTEST
Options[_]: growright
Background[_]: #8c9ebd

Target[192.168.8.26_3]: `cscript //nologo C:\wmi_freedisk.vbs
192.168.8.26 C: C:`
Title[192.168.8.26_3]: HDD Analysis for -- LIN0333B
PageTop[192.168.8.26_3]: <H1>HDD Analysis for -- LIN0333B</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>LIN0333B</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>StVeen</TD></TR>
   <TR><TD>Description:</TD><TD>Drive C:</TD></TR>
   <TR><TD>ifType:</TD>     <TD></TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Size:</TD>   <TD>37 GByte</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.8.26 (lin0333b)</TD></TR>
 </TABLE>


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