Run python plugin scripts for Windows

Run python plugin scripts in Windows servers

There are two methods to add Python to Windows path:
  1. Via the installation of a recent version of Python
  2. Manual entry of the paths
Via the installation of a recent version of Python:
  1. Download a recent version of Python.
  2. Check the option Add Python to PATH during the installation.
Note: Uninstall your previous version of Python if needed.
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.
  1. Open Run.
  2. Type sysdm.cpl and press Ok.
  3. Click the Advanced tab > Environment Variables.
  4. In the section System Variables, find the PATH environment variable and select it. Click Edit
  5. 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.
  6. 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

    • How to troubleshoot my Windows PowerShell Plugin?

      By default, the Site24x7 monitoring Windows agent will run as a SYSTEM user. In case, if you would like to verify if the plugin script is giving the output properly as SYSTEM user, follow these steps: Download PsExec from this link and extract the ...
    • Why is my MySQL plugin not getting added to Site24x7?

      Agent Requirements: The Site24x7 Linux monitoring agent version is above 15.0.0 The Site24x7 Linux server monitoring agent should be installed in the network or on the specific host where the MySQL instance is running. If you are running the plugin ...
    • How do you enable or disable Management Actions in your Windows server?

      Management Actions can be used to start or stop VM configurations in a Hyper-V server, services in a Windows server, or sites and application pools in an IIS server. These actions can't be performed if Management Actions is disabled in the server ...
    • Troubleshooting tips for Quota violation and WMI error while running WMI queries and scripts

      While running a script or WMI query, you may get the error message "Quota violation". This can be because the WMI provider service may have reached its quota limit. Troubleshoot by following the below steps: Go to Start > Run > type wbemtest.exe ...
    • Add a new Windows plugin

      Our open eco system for plugins give you the flexibility to create your own plugins and monitor data that you need, the way you want. You can also set thresholds to individual attributes and choose to get alerted if the set values exceed.  10 plugins ...