Ad Widget

Collapse

Trigger prototype with item from multiple discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eugen Semezh
    Junior Member
    • Oct 2018
    • 2

    #1

    Trigger prototype with item from multiple discovery

    Hello there.

    There is a little problem that stumped me. I have two Cisco WLCs that control several APs in several buildings. Hosts for controllers used template from Zabbix Share. Also in "WLC AP data" discovery added item prototype describing administration status for every AP. With that item prototype I create trigger prototype that shows when AP disconnect from controller. Simple expression like this
    Code:
    {Template Cisco WLC Discovery:bsnApAdminStatus[{#SNMPVALUE}].nodata(300)}=1
    It worked properly. But there is one more thing. APs choose controller to connect automaticly and dynamicly and moreover they may change controller from one to another during work. So I got a bunch of false alarms.
    Now trigger must consider existence and state items for same AP on another host. First I tried to edit trigger prototype like that
    Code:
    {WiFi-A:bsnApAdminStatus[{#SNMPVALUE}].nodata(300)}=1 and
    {WiFi-B:bsnApAdminStatus[{#SNMPVALUE}].nodata(300)}=1
    But it doesn't work.
    Click image for larger version

Name:	edb27020-03c4-4e8b-9254-cf08cb29cd3f.png
Views:	628
Size:	10.5 KB
ID:	368209
    As I understood trigger prototype in Zabbix may use any static item from any hosts and item prototypes only from discovery to which he belongs. I was thinking about creation of dummy host which aggregate items from both controllers but necessary items created by discovery.
    The question is "can I do something by Zabbix itself?" Or solution is only custom scripts?
    Zabbix version 4.0.0
Working...