[mrtg] MRTG and CScript
Sutton, Rob
rsutton at centra.com
Fri Dec 27 18:42:20 MET 2002
Help!! I am trying to use VBScript to collect WMI data for memory.
Available and Commited. Here is my cfg:
----------------------------------------------
PageTop[StorageWorks1_FREE_COMMIT]: <div align="center"><center>
</table>
<H1><font face="Arial">Available Memory (Avail) & Committed Memory
(Commit).</H1>
</center></div>
<P align="center"><b>Comment: </b> <font
color="#00FF00">Green</font>
= <b> Available Memory (Available), </b><font
color="#0000FF">Blue</font> = <b> Committed Memory (Commited)</b> </P>
<P>Red line indicates installed memory (1GB).</P>
Title[StorageWorks1_FREE_COMMIT]: Available vs Committed Bytes
Background[StorageWorks1_FREE_COMMIT]: #9090909
Target[StorageWorks1_FREE_COMMIT]: 'cscript //nologo
D:\mrtg\bin\VB_Scripts\AvialVSCommitMEM.vbs'
MaxBytes[StorageWorks1_FREE_COMMIT]: 1048096000
Options[StorageWorks1_FREE_COMMIT]: gauge
WithPeak[StorageWorks1_FREE_COMMIT]: dwmy
XSize[StorageWorks1_FREE_COMMIT]: 320
YLegend[StorageWorks1_FREE_COMMIT]: Bytes
ShortLegend[StorageWorks1_FREE_COMMIT]: Bytes
Legend1[StorageWorks1_FREE_COMMIT]: Available Memory (Bytes)
Legend2[StorageWorks1_FREE_COMMIT]: Committed Memory (Bytes)
LegendI[StorageWorks1_FREE_COMMIT]: Avail: 
LegendO[StorageWorks1_FREE_COMMIT]: Commit: 
----------------------------------
I keep getting the following error:
----------------------------------
ERROR: Target[storageworks1_free_commit][_IN_] ''cscript //nologo
D:\mrtg\bin\
_Scripts\AvialVSCommitMEM.vbs'' evaluated to 'cscript //nologo
D:\mrtg\bin\VB_
ripts\AvialVSCommitMEM.vbs' instead of a number
ERROR: Target[storageworks1_free_commit][_OUT_] ''cscript //nologo
D:\mrtg\bin
B_Scripts\AvialVSCommitMEM.vbs'' evaluated to 'cscript //nologo
D:\mrtg\bin\VB
cripts\AvialVSCommitMEM.vbs' instead of a number
WARNING: Skipping Update of storageworks1_free_commit, inlast is not
defined
WARNING: Skipping Update of storageworks1_free_commit, outlast is not
defined
---------------------------------
But when I run the CScript Target above from a cmd prompt I get my
two variables:
---------------------------------
D:\>cscript //nologo D:\mrtg\bin\VB_Scripts\AvialVSCommitMEM.vbs
33550336
296091648
---------------------------------
Any help would be greatlt appreciated!
Thanks,
Rob
--
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