Updating the Python path in a plugin script for Linux servers

Updating the Python path in a plugin script for Linux servers

If you are installing a Python plugin in Linux servers, ensure you update the correct Python path in the .py plugin script that you have downloaded from our GitHub repository.

Follow the steps below to update the correct Python path in the plugin script for Linux plugins:

  1. Execute the command below to check the Python path for python3 in your Linux server. Install the latest version of python3 in your Linux server if you do not have it installed.
    which python3

    For example, if the which python3 command returns an output /usr/bin/python3, the output is considered the correct Python path.



  2. Open the downloaded .py plugin script that you are installing and update the Python path received in the previous step, then save the script. Note that the Python path is always denoted in the first line of the script.

    For example, if your Python path based on the previous step is /usr/bin/python3, then update the first line of the script with the correct path after the #! (shebang) character as shown below:

    #!/usr/bin/python3


    • Related Articles

    • 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 ...
    • 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 ...
    • Install and configure an Oracle plugin in Windows

      Prerequisites Ensure that the Site24x7 Windows server monitoring agent is installed in the system where the Oracle instance is running. Ensure python3 is installed in the system and add it to the Windows path. Refer to the link below for adding ...
    • Build custom Linux plugins

      Plugins are a great way to measure customized attributes and keep track of the data that matters the most. You can set thresholds to individual attributes and choose to get alerted if the set values exceed. Please follow the below steps to configure ...
    • How do I add the Dell iDRAC plugin for Windows?

      Prerequisites Install the latest version of the Net-SNMP package. Follow these steps to install and configure it. Install Python 3.6. Plugin Installation Create a folder named idrac. Download the files from our GitHub repository and place them in the ...