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

    • 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

      From a single plugin you cannot monitor all MySQL instances. You can reuse the same MySQL plugin by renaming it and editing the configuration. Using MySQL for monitoring multiple instances: Copy the mysql/ folder to mysql_instance/ Rename the ...
    • What are the major differences between Monitor Groups and Tags

      Monitor Groups   A Monitor Group helps in logically grouping resources, and provides a business perspective of the resources. It can be used for: Filtering monitors in the Home tab - Monitor Status Page. Filtering monitors in Configuration Rules and ...
    • 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 ...
    • Under what cases does a plugin monitor move to the Ignored List?

      Use Case: A user tries to install and add a plugin monitor to Site24x7. The Linux/Windows monitoring agent will try to register the plugin and add it for monitoring. In case there is a configuration error, the agent will retry for 12 polls after ...