Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6165

Plugin Lifecycle communication and documentation

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Agent2 plugin (N)
    • None
    • Zabbix 5.0.x

      Is there a way to communicate the state of a plugin to the server? Maybe as a metric.
      For example: we would like to have a plugin which tells the state about the zabbix agent or more specific it's last state.

      If the agent2 was manuall/intentionally stopped the Plugin Manager stops the plugins and the plugin sends a last message "stopped" for example. If the agent2 crashed this would not happen.

      Also we have an "wrapper-package" which installs the agent/agent2 and some scripts to the clients. In this package we handle some "client-lifecycle" logic (installed/uninstalled). If the package gets uninstalled it writes to a file ("installed"/"uninstalled") which is then read by the agent - with this way somewhat automate the host activation/deactivation in zabbix. Currently we do this with restarting the agent service and then stopping it before the uninstall happens.

      With the above function/feature a agent2 plugin could read described file and submitting the state a last time on stopping. This way we wouldn't have to play around with service restarts.

            asebiskveradze Aleksandre Sebiskveradze
            rockaut Markus Fischbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: