How to debug a plugin monitor?
Please follow the steps below:
Go to your plugin folder
For Linux : /opt/site24x7/monagent/plugins/<plugin name>
For Windows: <Installation Directory>\Site24x7\WinAgent\monitoring\Plugins\
Execute your plugin file
Eg: For Python : python <plugin name>.py
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 ...}
Related Articles: