Run python plugin scripts in Windows servers
There are two methods to add Python to Windows path:
- Via the installation of a recent version of Python
- Manual entry of the paths
Via the installation of a recent version of Python:
- Download a recent version of Python.
- Check the option Add Python to PATH during the installation.
Note: Uninstall your previous version of Python if needed.
Ensure that all required Python dependency modules mentioned in the installation steps of the plugin, such as pymongo for MongoDB or psycopg2 for PostgreSQL, are installed on the server before trying to run the Python plugin on Windows.
Manual entry of the paths:
If you want to use the existing version of Python you have, you can manually add Python to Windows path.
- Open Run.
- Type sysdm.cpl and press Ok.
- Click the Advanced tab > Environment Variables.

- In the section System Variables, find the PATH environment variable and select it. Click Edit.

- If the PATH (or path) environment variable does not exist, click New. In the New User Variable window, type Path for Variable Name and for the Variable Value, enter the full Python application path followed by a semicolon and the Python Scripts path.
Note: The Python application path is the folder where you originally installed Python. The Python Scripts path is the folder located within the Python application path.
- Press OK and you will see the new Python Path under the User variables section.
You’ll now be able to install python plugin script in Windows servers. Before adding the plugin, please execute the python script and ensure the output is in JSON format.
Related Articles
Troubleshoot the "pymysql module not found" error when installing the MySQL plugin
If you're encountering the pymysql module not found error, it likely means that the pymysql Python library is not installed on the server. pymysql is a Python package that provides a way to interact with MySQL databases using Python code and is used ...
How to uninstall the Site24x7 Windows Server Monitoring Agent
Method 1: To uninstall the Site24x7 Windows Server Monitoring Agent, click the link below: https://staticdownloads.site24x7.com/server/Site24x7WindowsAgentUninstall.zip Unzip and execute the Uninstall.bat file in the Command Prompt as an ...
Executables and scripts to allow for Windows server monitoring
One of the reasons you could not enable Site24x7 server monitoring could be your organization's group policy denying access to the executables, scripts, and batch files associated with Site24x7 server monitoring. Mark the following executables, ...
No data for service and process in Windows server monitor
If you see "No Data" for process and service metrics (such as CPU or memory usage of monitored services) in the Site24x7 Windows server monitor user interface, follow the troubleshooting steps below. Run PowerShell Commands Open PowerShell as ...
Troubleshoot the Error 404 and Error 99 for RabbitMQ
When installing the RabbitMQ plugin, you may encounter the following errors: HTTP Error 404: Not Found: This error usually occurs when Site24x7's RabbitMQ monitoring plugin attempts to access the /api/overview page of RabbitMQ, but the resource ...