-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
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.