Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Script timeout after upgrade to 4.2

Script timeout after upgrade to 4.2

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 20.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    szabolcs
    wrote on last edited by
    #1

    Hey,

    I've just upgraded from 4.1 to 4.2 and noticed most of my scripts on agents are timing out after 5 seconds

    2022.11.01 11:36:17.798 *D* [comm.cs.1          ] H_ExternalTable called for "BackupList2" (separator=0x007C mode=S cmd="powershell -NoProfile C:\veeamscripts\Get-VeeamJobs-ExternalTable.ps1"
    2022.11.01 11:36:17.798 *D* [exec               ] RunExternal called for "BackupList2" "Spowershell -NoProfile C:\veeamscripts\Get-VeeamJobs-ExternalTable.ps1"
    2022.11.01 11:36:17.798 *D* [exec               ] RunExternal: command line is "powershell -NoProfile C:\veeamscripts\Get-VeeamJobs-ExternalTable.ps1"
    2022.11.01 11:36:17.816 *D* [procexec           ] ProcessExecutor::execute(): process "CMD.EXE /C powershell -NoProfile C:\veeamscripts\Get-VeeamJobs-ExternalTable.ps1" started
    2022.11.01 11:36:22.816 *D* [exec               ] RunExternal: external process execution timeout (command line "powershell -NoProfile C:\veeamscripts\Get-VeeamJobs-ExternalTable.ps1")
    2022.11.01 11:36:22.823 *D* [procexec           ] ProcessExecutor::readOutput(): process termination detected
    

    Tried adding DefaultExecutionTimeout=30000 to the agent config, but seems to have no effect whatsoever. Have no other timeout values defined in the config. Cannot figure out what agent setting should I mess with.

    Thank you!

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Hi!
      There's a bug in recently released 4.2 - DefaultExecutionTimeout is not taken in account. This will be fixed in next patch release.

      Try settingExternalMetricTimeout - it should affect external tables and external metrics.

      Also, external tables now have a new, background mode of operations - command is called regularly, it's output is cached and instantly returned to server when it requests the table. See for more info: https://www.netxms.org/documentation/adminguide/agent-management.html?highlight=externaltable#externaltable

      1 Reply Last reply
      0
      • S
        S
        szabolcs
        wrote on last edited by
        #3

        This did the trick, thank you! Great support as always. Will also look into this background mode as well.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better đź’—

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups