Plugin version for a plugin

Under what conditions should I change my plugin version?

A plugin template defines the metrics, tabs, and overall structure that Site24x7 uses to monitor your plugin. Whenever the template structure changes, you must increase the plugin version so that Site24x7 creates a new template.

Rules

  1. Increase the plugin version in the following cases:
    • Whenever a metric is added, deleted, or renamed.
    • When tabs are added or modified.
  2. Do not increase the plugin version if:
    • The metric names and template structure remain the same, and only the logic used to collect the metric values changes.

Notes
If multiple plugin monitors use the same template, they must all use the same plugin version. Do not maintain different plugin versions for monitors that are mapped to the same template.

Example

Current plugin output (Version 1)

{
"plugin_version": 1,
"heartbeat_required": true,
"cpu": 42.7,
"memory": 65.8,
"network": 156,
"units": {
"cpu": "%",
"memory": "%",
"network": "MB"
}
}
  • The monitored metrics are cpu, memory, and network.
  • If you add a new metric named disk, you must increase the plugin version.

Updated plugin output (Version 2)

{
"plugin_version": 2,
"heartbeat_required": true,
"cpu": 42.7,
"memory": 65.8,
"network": 156,
"disk": 10,
"units": {
"cpu": "%",
"memory": "%",
"network": "MB",
"disk": "count"
}
}

Why is a version change required?

The template structure has changed because a new metric (disk) and its corresponding unit were added. Whenever the template structure changes, the plugin version must be incremented so that Site24x7 creates a new template.

Notes
If you only modify the logic used to fetch the values for existing metrics, such as cpu, memory, or network, and do not add, delete, or rename metrics or modify tabs, you do not need to increase the plugin version.

    • Related Articles

    • How do I add the Dell iDRAC plugin for Windows?

      Prerequisites Install the latest version of the Net-SNMP package. Follow these steps to install and configure it. Install Python 3.6. Plugin Installation Create a folder named idrac. Download the files from our GitHub repository and place them in the ...
    • 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 ...
    • Disable alerts for a plugin if the parent server is down

      If a plugin monitor's parent server goes down, you can choose to exclude additional alerts from the plugin monitor. This way, you won’t receive alerts when the plugin monitor goes down as a result of the parent server being unavailable. To suppress ...
    • Troubleshoot Error 404, Error 111, and "no host given" error when installing the Apache plugin

      When installing the Apache monitoring plugin, you may encounter the following errors: Error_code : URL Error no host given: The "no host given" error message typically indicates an issue with a URL or request that lacks a hostname. If you encounter ...
    • 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 ...