Ad Widget

Collapse

Set different trigger (threshold) on an Item Prototype on the same host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • plui
    Junior Member
    • Sep 2016
    • 10

    #1

    Set different trigger (threshold) on an Item Prototype on the same host

    Here is what I'm trying to do.
    • Setup LLD with database query to get the list of databases
    • Setup Item Prototype that query for something for each database
    • Setup a Trigger that have different threshold depending on which database it's querying


    So far I haven't been successful in achieving the above.
    • At first I tried to use User-Defined Macro on the database host but all the databases will have the same threshold.
    • I then tried setting up Host Prototype to create a host for each database thinking I can then add User-Defined Macro for each of these "hosts". However, you can only inherit Macros on these hosts from the parent (i.e. the database server).


    Is there anyway to achieve what I'm looking for?

    Thanks!
  • peatb
    Zabbix Certified Trainer
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2016
    • 36

    #2
    Starting with zabbix 3.0 you can use context in your macros:


    and


    You still have to define the tresholds yourself, but you can have a different one for each database.

    Comment

    Working...