Ad Widget

Collapse

how (or can i) to attach action to trigger inside template.xml

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogi
    Junior Member
    • Mar 2016
    • 26

    #1

    how (or can i) to attach action to trigger inside template.xml

    Hi,
    I have a template.xml with items and triggers and low discovery, and all i want to do is to add an action (like actiavate a script) to a trigger inside the template...
    can i do it? if yes... how??
    Thanks
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    At the moment actions are not part of the templates.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • yogi
      Junior Member
      • Mar 2016
      • 26

      #3
      ohhhh

      Thank you! do you know if it spouse to be in the future?

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        I think that it will be managed separately from the trigger,
        but the feature request has been posted.
        It is not scheduled when it will be implemented.

        ZBXNEXT-640
        export and import of actions and discovery rules

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          Originally posted by Atsushi
          ZBXNEXT-640
          export and import of actions and discovery rules
          https://support.zabbix.com/browse/ZBXNEXT-640
          This RFE is not exactly what is discussed in this thread. It is quite close but it is not the same.
          Here it is not the case of exporting/importing actions definition per se.

          Sometimes when you when you have hosts templates (set of templates which can be used as single applied on the host object which may inherit other simpler/generic templates) you may be interested to template actions definition as part of the template as for example some action condition may depends on pattern in hostname or you want to add per template trigger based action.

          Have actions definition as part of the template is useful when zabbix is interacting with external services processing alarming layer events and when you have quite sophisticated definition of the flow of alarms outside of the zabbix.
          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
          https://kloczek.wordpress.com/
          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
          My zabbix templates https://github.com/kloczek/zabbix-templates

          Comment

          Working...