Ad Widget

Collapse

Compare multiple items with different templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tuncer.inan
    Junior Member
    • Feb 2019
    • 3

    #1

    Compare multiple items with different templates

    Hi Sir,

    How can I combine multiple templates.I wanna compare multiple items but in diffrent template.Like this.

    {Test1:system.location.last()}={Test2:system.locat ion.last()}

    Thanks for answers.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Create new template -> link those templates in this new template which items you want to process -> create in this new template new calculated/aggregated items and/or triggers .
    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

    • tuncer.inan
      Junior Member
      • Feb 2019
      • 3

      #3
      Thanks for support.When ı create a new template and linked those templates, i have encountered this problem:
      • Template cannot be linked to another template more than once even through other templates.

      Comment

      • tuncer.inan
        Junior Member
        • Feb 2019
        • 3

        #4
        I want to do the following diagram.If the TEMPA loses ping, Do not run alarm the equal location name.

        Attached Files

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          Originally posted by tuncer.inan
          Thanks for support.When ı create a new template and linked those templates, i have encountered this problem:
          • Template cannot be linked to another template more than once even through other templates.
          Looks like some of the templates which you are trying to aggregate into new one already have some common template and obviously it is not possible to create such template.
          It is always some kind of solution but it depends always on what you are trying to archive.
          Just please drop few details about those items which you want to process .. what it is and what kind of result you want to have?
          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

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #6
            Just spotted the chart.
            So you want to have monitored probably physical path and to have signal that from exact hop path is failing.
            So in your current scenario you have probably separated monitoring of those hops using kind of ICM template however you cannot use thise template because it does't know anything about path.

            Theoretically what is needed here is another template dedicated to monitor ICM paths:
            - Create LLD which will have on input taken using traceroute/tracepath list of hops and than it will populate set of ICMP items per hop.
            - One of the metrics per hop should have numeric value with values 0 or 1 (0 if hop is OK, 1 if is not reachable)
            - Create aggregated item of those created by LLD
            - If aggregate has non zero value it means that path is faulted

            All above is only theory because what is missing here is ability to create item which will aggregated LLD items .. which still is missing https://support.zabbix.com/browse/ZBXNEXT-1521
            Workaround:
            - create external scrip (oft item using system.run[] if you allow use it on agents .. my understanding is that you are going to monitor IP paths between agents and if not you need to use simple items or external scripts items) which will be probing dest IP which will return state of the IP path
            - another one which will return IP/hostname of the faulting hop.

            So in other words: always ask the question about what you are monitoring and is this object is the same as those objects which templates you already have
            Only lack of this question was kind of source of issue :P
            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...