Debug a plugin monitor

How to debug a plugin monitor?

Please follow the steps below:
  1. Go to your plugin folder
    For Linux : /opt/site24x7/monagent/plugins/<plugin name>
    For Windows: <Installation Directory>\Site24x7\WinAgent\monitoring\Plugins\
  2. Execute your plugin file
    Eg: For Python : python <plugin name>.py
  3. Check the output content :
  • Ensure you get a valid JSON output with a JSON Editor
  • The plugin script should have plugin_version, heartbeat_required, data, units (optional), msg (optional)
  • The data attribute must have attributes to be monitored. Only the attributes inside "data" will be monitored.
    Eg: "data" : {"attribute a" : 100 ...}
  • Check if the plugin template is registered with the highest version. When should I change my plugin version?

Related Articles:

    • 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 ...
    • 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 ...
    • What is a plugin template and a plugin monitor?

      Plugin Template:A plugin template is a set of attributes to be monitored.  Example: file consisting of attributes like slow queries, reads, writes etc Plugin Monitor: A monitor that uses a plugin template for monitoring purposes Example: The ...
    • Monitor multiple MySQL instances from one plugin

      You can monitor multiple MySQL instances using a single plugin. You can configure the input data like the MySQL hostname, password, and other details in the mysql.cfg file. This enables multiple instance monitoring using the same plugin without ...
    • What happens if I delete a plugin monitor from the Site24x7 web client?

      Once the user chooses to delete a plugin monitor, this will be communicated to the agent and it will stop data collection. But, the plugin script file will remain in the plugins directory For Windows - <Installation ...