How to increase the script run time RRS feed

  • Question

  • How can I increase the configured timeout of a script? The one below is running on a heavily used box and I'd like to see if I could increase it to troubleshoot things.

    Forced to terminate the following process started at 9:29:32 PM because it ran
    past the configured timeout 300 seconds.

    Command executed:
    "C:\Windows\system32\cscript.exe" /nologo
    "Microsoft.Windows.Server.FreeSpace.vbs" myserver.com false 500 10 300
    5 2000 10 1000 5
    Working Directory: C:\Program Files\System Center Operations
    Manager\Agent\Health Service State\Monitoring Host Temporary Files

    One or more workflows were affected by this.

    Workflow name: many

    Instance name: many

    Instance ID:

    Management group: MOMGROUP

    Orange County District Attorney

    Tuesday, November 19, 2013 11:25 PM


  • Hi,

    that depends on the Management Pack version. TimeoutSeconds used to be overrideable in version 6.0.6667.0 but it isn't in 6.0.6989.0

    You can easily check this out by going, in the Ops Console, to Authoring\Monitors. Search for "Logical Disk Free Space" for Windows Server 20XX, right-click, create override etc. etc. and then check if the TimeoutSeconds is present as an overrideable parameter.

    However, if this script times out - there's some serious issues with the servers itself and as you mentioned already it's overloaded.
    In these cases I tell the server owner that SCOM can't run properly on his server unless he fixes the performance issues.

    • Edited by AndreasZuckerhut Wednesday, November 20, 2013 3:00 PM
    • Marked as answer by Niki Han Wednesday, November 27, 2013 6:31 AM
    Wednesday, November 20, 2013 2:58 PM