Ad Widget

Collapse

add triggers on host related from items of others hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • slider_xtm
    Junior Member
    • Sep 2005
    • 7

    #1

    add triggers on host related from items of others hosts

    I want add trigger on host test1:

    {test2.check_port[172.16.0.11,445].last(0)}=0

    but triggers add on test2

    and in networkmap i see trouble on test2, but i need it on test1

    may be it`s possible to add choice of host when add trigger?
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Yes, it is possible, but not immediately obvious. When you create a trigger, the UI assigns the trigger to the host that is listed as the host you are testing. For example, if you are on the trigger page for test1.host.com and you create a trigger like "{test2.host.com:status.last(0)}=2", the trigger would be assigned to test2.host.com and the page that reloaded would also be pointing to the triggers for test2.host.com.

    Now, having said that, there is a trick to achieve what you are looking for. The way to make it work is to create a trigger that is always true for test1.host.com and is AND'd to a trigger that checks test2.host.com, something like "({test1.host.com:system.uptime.diff(0)}=1)&({test 2.host.com:status.last(0)}=2)"

    This trigger will be listed on the trigger page for test1.host.com, but will test only test2.host.com as system.uptime is always going to be different between two checks.
    Unofficial Zabbix Developer

    Comment

    • slider_xtm
      Junior Member
      • Sep 2005
      • 7

      #3
      thanks, i will try this way.

      Comment

      Working...