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:
- Run the plugin script in the terminal and note down the time it takes for the script to run.
- For Linux servers:
- Navigate to the conf folder in the Site24x7 Linux server monitoring agent directory (/opt/site24x7/monagent/conf/) and open the monagent.cfg file.
- 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. - Restart the Site24x7 Linux server monitoring agent.
service site24x7monagent restart - Place the plugin folder you're trying to install in the Site24x7 plugins directory (/opt/site24x7/monagent/plugins/).
- For Windows servers:
- 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.
- 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. - Restart the Site24x7 Windows server monitoring agent.
Services.msc -> Site24x7 Windows Agent -> Restart - 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:
- Navigate to the corresponding plugin monitor, click the hamburger menu , and select Edit.
- Increase the Script Execution Timeout value to 120 secs (or as applicable) and click Save.
- Restart the server monitoring agent.