Discussion Locked

Performance Monitoring

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi All,

I recently wrote a VBscript to email me the performance log created after a period of monitoring. I have run the script with a btachfile, and it works perfectly.
I then setup a capture log using perfmon in Windows 2000 Server, and set the schedule to run over the day (0900 - 1800), and checked the box to run a program when the logging stops. I then pointed the run field to the batch file.
I have even tried testing this over five minute intervals...
ANyway, to the point, I receive no email when the logging is finished, yet if I dbl-clk or run the batch file from the cmd prompt, it mails the correct log (csv) file as requested. Seeing as the script works on it's own, I imagine this is a problem with Perfmon... I can supply anyone interested in helping with the script and batch file if they want to try this on their own machines to reproduce the problem.
Please help...

Will

5 replies

by will shakespeare

I changed the batch file to net send instead of execute the script, and I get a net send pop up after the logging is finished! So this obviously has something to do with running the VBScript... Can anyone help???

by mrval

Your problem is likely with the scheduler - I would check the defautt path of the batch files and dependent script files (if any) as well as the permissions set on the task. Check out the tasks properties in the 'Scheduled Tasks' app under Accessories-System Tools

by will shakespeare

Sorry, but although you gave me a new avenue (using the task scheduler instead of using the option to run a command in Perfmon), I'm afraid it didn't work. I gave full Domain Admins security to the scheduled task, as well, but it still does not run the script. I still executes the netsend command I put in the batch file to confirm the batch file is being run, but no email. Even if I run the task manually by right-clicking and "run", I still get the net send message, but no email...
Any other ideas?

This discussion is closed to new replies.