How to increase the Script Execution Timeout value for plugins

How to increase the Script Execution Timeout value for plugins

If a plugin's script execution time exceeds the Script Execution Timeout value configured in Site24x7, it could result in errors during plugin installation or disrupt the polling for existing plugin monitors. In such cases, you need to extend the Script Execution Timeout for the respective plugin monitor in Site24x7 to register it successfully and continue viewing your monitoring data.

To extend the Script Execution Timeout during installation or when the plugin registration has failed, follow the steps below:
  1. Run the plugin script in the terminal and note down the time it takes for the script to run.

  2. For Linux servers:
    1. Navigate to the conf folder in the Site24x7 Linux server monitoring agent directory (/opt/site24x7/monagent/conf/) and open the monagent.cfg file.
    2. Increase the value of the plugin_timeout parameter to a value greater than the plugin execution time you noted down earlier.
      For example, if your plugin script took 67 seconds to execute, increase the plugin_timeout value to 120.
    3. Restart the Site24x7 Linux server monitoring agent.
      service site24x7monagent restart
    4. Place the plugin folder you're trying to install in the Site24x7 plugins directory (/opt/site24x7/monagent/plugins/).

  3. For Windows servers:
    1. Navigate to the Pluginbin folder in the Site24x7 Windows server monitoring agent directory (C:\Program Files (x86)\Site24x7\WinAgent\monitoring\bin\Pluginbin\) and open the info.config file.
    2. Increase the value of the scripttimeout parameter to a value greater than the plugin execution time you noted down earlier.
      For example, if your plugin script took 130 seconds to execute, increase the scripttimeout value to 150.
    3. Restart the Site24x7 Windows server monitoring agent.
      Services.msc -> Site24x7 Windows Agent -> Restart
    4. Place the plugin folder you're trying to install in the Site24x7 plugins directory (C:\Program Files (x86)\Site24x7\WinAgent\monitoring\plugins\).
Within five minutes (i.e., after the next polling event), the plugin will be successfully registered.

If polling has stopped for existing plugin monitors because the plugin script execution timed out, follow the steps below to increase the Script Execution Timeout value in the Site24x7 web client:
  1. Navigate to the corresponding plugin monitor, click the hamburger menu , and select Edit.
  2. Increase the Script Execution Timeout value to 120 secs (or as applicable) and click Save.


  3. Restart the server monitoring agent.
If the issue persists, reach out to support@site24x7.com with the plugin details.