Windows Server 2000 – Restart service when consecutive performance monitor thresholds are exceeded

15 pts.
Tags:
Performance monitoring
Windows Server 2000
Windows Server 2000 SP4
Windows Server Performance
I need to be able to automatically restart a service on a Win2000 server when 3 consecutive performance monitor thresholds are exceeded. I can run a batch file/command that restarts the service when the threshold is exceeded by setting up a Performance Alert, but 3 consecutive thresholds are required to prevent false positives (spikes) restarting the service. I have looked for third-party software to do this withouth luck. I believe this might be possible through scripting somehow but I wouldn't know where to start. Anyone have any idea if this would be possible? Thanks

Software/Hardware used:
Windows 2000 Server SP4
ASKED: February 9, 2011  3:07 AM
UPDATED: February 16, 2011  5:27 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Could you check for a file exists and then run your restart code?

Something like this

On condition
If file2.txt exists
restart service
Else if file1.txt exists
create file2.txt
Else
create fil1.txt

You would need a second falling alert to clean-up the files.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sireddie
    I believe I might have found a piece of software that will do what I need: EventSentry
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following