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: