How to troubleshoot my Windows PowerShell Plugin?

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:

  1. Download PsExec from this link and extract the PSTools.zip file.

  2. Open command prompt as the administrator.

  3. Navigate to the PsExec.exe path.

  4. Execute the following command:
    psexec -i -s powershell.exe.
    This will open the PowerShell window.

  5. Execute the command whoami and check if it is running as SYSTEM user.
    If it does, then the agent is running as the SYSTEM user.

                      

  1. Now, execute the PowerShell script. If any error occurs, check if the SYSTEM user has permission to execute the script. If there is no error during execution, verify if you are getting the output in JSON format.

 

                            
    • Related Articles

    • Troubleshoot connection errors in the MySQL plugin

      When configuring the MySQL plugin, you may encounter the following errors: Error : Connection Error - This error typically indicates that there is a problem establishing a connection to the database. Sometimes, this message is supplemented with an ...
    • 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 ...
    • 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 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 ...
    • How to view perfmon counters in Windows?

      To monitor specific Windows performance (perfmon) counters with Site24x7's plugin integration, you need to get the names of the performance counters from the Windows Performance Monitor on your server. Follow the steps below to get the names of the ...