Search code examples
triggersdependenciesmonitorzabbix

Zabbix 5 - Can an item be monitored only at certain circumstance?


I am using Zabbix 5. As long as I know, there are item dependencies and trigger dependencies. Other than that, I am curious if I can set a condition for an item to be monitored only at that condition. For example, if one firewall device gives 0 ping back, then I want to start monitoring (or sending pings) to a L2 device which is above that firewall device. So, my L2 device will be monitored not all the time but only when I get a trigger. Is there such functionality available in Zabbix?


Solution

  • Not natively. Actually I don't see the usefulness for a "light dependancy" like that.

    However, a possible workaround:

    • create the L2 device item (ping, tcp port etc..) and disable it.
    • create a custom action for FW unreachability to launch a custom script, for both problem creation and problem resolution
    • the script should do an api call to enable/disable the L2 device item