Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On Windows Server 2003 I have an alert configured in "Performance" based on a counter. The alert is triggered and this is mentioned in the Application event log (as source "SysmonLog").

However, I am trying to make the alert run a program when it is triggered and that doesn't work.

So far I have encountered three different outcomes.

If I open the alert and under the "Action" tab configure "c:\windows\system32 \cmd.exe" in the "Run this program" text field and pass any arguments to it, event viewer will claim "Unable to execute command ''" (with indeed an empty string between the single quotes).

Sometimes the same error refers to the command 'c:\windows\system32\cmd.exe' but with a character called "Luster of Jade" and a newline replacing the drive letter (Unicode character 7498 followed by carriage return and linefeed).

In both cases the actual event (that the alert has been triggered) is NOT noted in the Application log. Also both cases report an error 0x522 (ERROR_PRIVILEGE_NOT_HELD).

The third outcome happens when I configure the alert to run a program without any command line arguments, in which case the fact that the alert was triggered is written to the event log but the program is simply not run (I wrote a text program myself to see if it would run at all, it's not).

Now I am baffled.

Any ideas?

Update: I did think that the error 522 is because the counter belongs to another server. However, as the alert is triggered and the error only happens when I try to run a program with arguments but does not happen when I try to run a program without arguments, I at first didn't think it could be the reason.

share|improve this question
    
Have you considered deploying a monitoring system like Nagios that is designed & built for challenges like this? –  uSlackr Jun 6 '12 at 14:43
    
Turns out such proposals are really difficult to bring up to management. So, no. :-) –  Andrew J. Brehm Jun 14 '12 at 10:13

1 Answer 1

up vote 0 down vote accepted

The working solution was to create an eventtrigger to watch the event log and run a program from it.

The alert simply couldn't be convinced to run a program.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.