Re: Perfmon script not working??



You may need to explicitly call a scripting engine. Something like;

cscript scriptname.extension

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

<Adisegna@xxxxxxxxx> wrote:
| Hello,
|
| I'm trying to monitor free disk space using Performance Monitor. If the
| free space falls below a certain value I have an email.vbs script I
| want kicked off to let me know about it.
|
| An alert was created on Windows 2003 server using the Logical Disk Free
| Space counter. I set the actions to "Log an entry in the application
| event log" and "Run this program" (c:\scripts\email.vbs). I can run
| email.vbs from the command line and from windows using cscript and
| wscript.
|
| ------------------------------------------------------!!!
| When running out of disk space Perfmon creates the event in the event
| log but the script doesn't run.
| ------------------------------------------------------!!!
|
| These are generated in the event log.
|
| Event ID 2031 = Counter: \\MYComputer\LogicalDisk(C:)\% Free Space has
| tripped its alert threshold. The counter value of 28.0766666666667 is
| under the limit value of 20000.
|
| Event ID 2038 = Unable to execute command '' for the Free Disk Space
| alert. The alert will continue as scheduled. The error code returned
| is in the data.
|
| Wha am I missing?
|
| Thanks in advance
|


.



Relevant Pages

  • Re: Perfmon script not working??
    ... I had perfmon call a bat file with (cscript ... | I'm trying to monitor free disk space using Performance Monitor. ... | free space falls below a certain value I have an email.vbs script I ... | An alert was created on Windows 2003 server using the Logical Disk ...
    (microsoft.public.win2000.general)
  • Perfmon script not working??
    ... I'm trying to monitor free disk space using Performance Monitor. ... free space falls below a certain value I have an email.vbs script I ... An alert was created on Windows 2003 server using the Logical Disk Free ...
    (microsoft.public.win2000.general)
  • NEWBIE: Script help needed
    ... information regarding disk space and available upgrades for my system. ... This script is actually a learning tool for me as I learn Python. ... runs time emerge --sync ... The 'emerge' command is a Gentoo specific one. ...
    (comp.lang.python)
  • Re: cscript errors when running many concurrent vbs scripts
    ... > i have a java application that spawns cscript to run a simple vbs ... > Script Host failed. ... > processes from java), i'm looking into writing a c++ dll that makes ...
    (microsoft.public.scripting.wsh)
  • Cleandisk : a utility to wipe unused disk space
    ... Havent used but located script to wipedisk ... # This is a little shell script to wipe disk space ... # overwrite all unused disk space without risking ... MSG="You must specify a number of overwrites. ...
    (AIX-L)