Ad Widget

Collapse

create a trigger refering to items in 2 templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TiYab
    Junior Member
    • Feb 2017
    • 6

    #1

    create a trigger refering to items in 2 templates

    Hi,

    I can't figure how to implement a trigger in a template that reference an item from another template.

    I would like to set a trigger that do the following:
    - if VM1(based on the name) and process is running -> OK
    - if VM2 and process is not running -> OK
    - if VM1 and process is not running -> KO
    - if VM2 and process is running -> KO

    I have set the following Template MyProcess, item MyProcess, trigger MyProcess
  • tcilmo
    Senior Member
    • Nov 2016
    • 122

    #2
    Originally posted by TiYab
    Hi,

    I can't figure how to implement a trigger in a template that reference an item from another template.

    I would like to set a trigger that do the following:
    - if VM1(based on the name) and process is running -> OK
    - if VM2 and process is not running -> OK
    - if VM1 and process is not running -> KO
    - if VM2 and process is running -> KO

    I have set the following Template MyProcess, item MyProcess, trigger MyProcess
    Does this happen to be a load balanced cluster behind a VIP? If so, I have an example for that. If not you will need to use two different templates or host based items\triggers. Server 1 (or Primary) will need to be monitored for the service not running condition and Server 2 will need to be monitored for the running condition.

    Comment

    • TiYab
      Junior Member
      • Feb 2017
      • 6

      #3
      sadly not a cluster behind a VIP.
      For the moment I am using 2 templates and was kind of hoping to be able to manage that in a single template.

      too bad

      Comment

      Working...