Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5274

dynamicly link templates

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Templates (T)
    • None

      It would be great if there would be a more automated way to link templates to hosts - so more dynamicaly. Currently we can only auto link templates on auto discovery but that needs that data got has changed or that a script is present on hosts for example.

      I know that we also can already use LLD for adding the needed items and such but having all items for all apps in one big template is badly unclean and shouldn't be a thing at all.

      For example: we currenlty read out system.sw.packages but with 0 history and then create dependent items with regex if software is installed (software.installed.postgres = 1). We also have an cron job running on zabbix-server which gets all hosts with that key and value 1 and then linking the "Template App Postgres" to all those hosts.

      The three ways i currently can think of would be:

      1.) with LLD rules:

      Create new discovery rule (lets say in OS Linux template) which gets the software and then instead of an item prototype it let us link templates. That may be somewhat limiting as we may still need an host-local script which provides the proper formated data.

      2.) An new Event Source ( Configuration -> Actions ) where we can link a template upon those Source like we currently can on Discovery. For example: Event Source "Application" -> Conditions: Has Application "Postgres" -> Operations Link to templates: Postgres

      This way one could dynamicly create items even with LLDs on whichever thing one want's and then have the proper Template added or removed as it's needed.

      3.) I could even think of using triggers for that. So in Configuration -> Actions -> Triggers add and Operation for "Add/Remove Template" That way we could even react on specific values for items. If item software.installed.postgres.version < 11 -> Trigger -> Action add "Template App Postgres old"

      Thought i understand that triggers might not be the best usage for that.

      A fourth way might also be to have a way to dynamically add tags (through LDD or Triggers) and then again react on the given Tag with Add/Remove Template. I think you see where I would like to go with all that.

            Unassigned Unassigned
            rockaut Markus Fischbacher
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: