Ad Widget

Collapse

Tying mulitple triggers to map element

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rtravis
    Junior Member
    • Nov 2013
    • 8

    #1

    Tying mulitple triggers to map element

    Hi all,

    I am running Zabbix 2.2.2 using the precompiled binaries for RHEL6 and using postgres as the database.

    I'm trying to monitor the status of a RHEL6 guest and display the status visually on a map. I've got 4 different applications defined (CPU, RAM, Disk, and Network Utilization) with several items assigned to each application. I've got triggers assigned to each item (i.e., CPU utilization exceeds 80%).

    What I'd like is a map with 4 elements on it corresponding to the 4 applications for the RHEL6 guest. If a trigger associated with the CPU Utilization is triggered, the CPU element goes into a problem state. The problem is that it appears you can only link a single trigger to an element.

    I've got a couple workarounds, but they are ugly. First would be to create a new map with all of the CPU triggers as elements and then set the original map element to type map and reference the new map. Do this four times, and voila. Except now I've got 5 times the number of maps per RHEL6 guest and this becomes extremely unmanageable the more guests you monitor.

    Second workaround would be to split the host up into four hosts, all referencing the same hostname, one for each application and then tie each map element to each of the four hosts. This is a bit more manageable, but uglies up the dashboard and hosts screens with 4 times the number of hosts. I'm sure it also increases server and network load.

    Is there anything I missed? A trigger group would be fantastic, or even just being able to tie multiple triggers to a map element. Anyone have any other workarounds?

    Thanks in advance for any help.

    rt
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    Place your host on the map, assig it to be "type=host", for "label" you might use "{HOST.NAME} / {HOST.CONN}"
    You cannot assign triggers here.

    Create a new map element (type=image), label it for example "services". Then you may add the last value of your items, too.
    Use "yourname: {YOURHOST:YourTest[PARAMS].last(0)}" for that.

    Link both together (mark both, click on "link [+]") and define colours and style.

    Now both are linked. The link you've just defined may have as many triggers as you want as long as they are host-based and not template based (which makes perfectly sense). Define color and style here, too.

    Now, if one of the triggers defined on $HOST fires, the host changes it's icon, the label changes and you still have the values displayed.

    While this is not *exactly* what you want it may help.

    Comment

    • rtravis
      Junior Member
      • Nov 2013
      • 8

      #3
      Thanks for the suggestion. It works in a way but doesn't give the pretty UI I was looking for.

      I ended up spending about 5 hours this morning in the frontend php and js modifying it to include an application group for the maps. I know this is not the best solution as far as upgradability, but the change was important enough to me to do it, especially since I don't plan on upgrading versions often.

      Comment

      Working...