You receive events 21421 and 21245 in the Microsoft Operations Manager (MOM) 2005 Operator Console if you use a response script for a rule in MOM 2005 (904747)



The information in this article applies to:

  • Microsoft Operations Manager 2005

SYMPTOMS

You receive the following events in the Microsoft Operations Manager (MOM) 2005 Operator Console:Type: Warning
Source: Microsoft Operations Manager
Category: MOM Agent
Event ID: 21421
Computer: ComputerName
Description: The response 'script: ScriptName' has been running more than time seconds and exceeded the time allowed to run. This might indicate the response is engaged in an infinite loop or is hanging. Type: Warning
Source: Microsoft Operations Manager
Category: MOM Agent
Event ID: 21245
Computer: ComputerName
Description: The response processor failed to execute a response. The response returned the error message : The remote procedure call failed.

Response ID: {response GUID}
Response description: script : Response script nameThese symptoms occur if the following conditions are true:
  • You use a response script for a rule in MOM 2005.
  • The response script uses the Run method of the WScript.Shell object to run an executable file from a remote share folder. For example, the command line of the response script looks similar to this command line:

    cmd = "\\Remote computer name\Share folder name\Executable file name.exe"
    Set wsq = CreateObject("Wscript.Shell")
    wsq.Run cmd, 5

Additionally, the following symptoms occur until the response script is stopped by MOM 2005:
  • The executable file does not start in the MOM 2005 agent.
  • The response script stops responding.

WORKAROUND

To work around this problem, use one of the following methods.

Method 1

Add cmd /c to the command line of the response script. For example, the command line looks similar to this command line after you add cmd /c to the command line of the response script:

cmd = "cmd /c \\Remote computer name\Share folder name\Executable file name.exe"
Set wsq = CreateObject("Wscript.Shell")
wsq.Run cmd, 5

Method 2

Add the remote server that contains the share folder to the Web sites list of the Local intranet zone. To do this, follow these steps:
  1. In Microsoft Internet Explorer, click Internet Options on the Tools menu.
  2. On the Security tab, click Local intranet, and then click Sites.
  3. Click Advanced, type the remote server name in the Add the Web site to the zone box, and then click Add.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Modification Type:MajorLast Reviewed:8/11/2005
Keywords:kberrmsg kbtshoot kbprb KB904747 kbAudITPRO