[mrtg] Re: MRTG and CScript

Brander, Eric Eric.Brander at ACS-INC.com
Fri Dec 27 20:07:04 MET 2002


Use the other single quote on your target line (forget what they are called)
Its the one next to the 1 key on a standard 101 keyboard. 
In you example you are using '
The correct one should be `

-----Original Message-----
From: Sutton, Rob [mailto:rsutton at centra.com]
Sent: Friday, December 27, 2002 11:42 AM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] MRTG and CScript



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:&nbsp;</b>&nbsp;&nbsp; <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:&nbsp
LegendO[StorageWorks1_FREE_COMMIT]: Commit:&nbsp
----------------------------------
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

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