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

    • How do I add the Dell iDRAC plugin for Windows?

      Prerequisites Ensure that the following prerequisites are met before using the iDRAC plugin for Windows: Install the latest version of the Net-SNMP package. You can follow this document to configure SNMP agents in your Windows Server or follow the ...
    • 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 ...
    • 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 ...
    • Troubleshoot the error message "execution of scripts is disabled" while configuring a PowerShell plugin

      Please follow the steps below: Login to your server Run the PowerShell prompt as Admin and execute the following: Set-ExecutionPolicy RemoteSigned Restart the plugin agent service Related Articles: Write a plugin using PowerShell Getting started with ...
    • FAQs related to Windows Service monitoring

      After installing APM Insight Windows service monitoring agent , if you don't see data in the Site24x7 console, or if you are unable to add monitors, kindly follow the below given steps to troubleshoot. If few monitors are not getting added: Check for ...