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

    • 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 ...
    • How to collect Applications and Services Logs from Windows event logs

      Site24x7 AppLogs uses the Windows Management Instrumentation (WMI) query on the Site24x7 Server Monitoring agent to fetch event logs. The WMI module requires the registry entry below to read the event logs from the Applications and Services Log ...
    • Possible reasons why my Windows plugin is not added to my account

      The following are the possible list of cases where a Windows plugin monitor will not be configured to your Site24x7 account: Check if the version of the Site24x7 Windows monitoring agent is above 15.5.0 Ensure script is in Batch, VB, PowerShell or ...