Ad Widget

Collapse

Problem with changing existing template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mk51
    Junior Member
    • May 2022
    • 8

    #1

    Problem with changing existing template

    I can't change some template parameters on the host. For example, by default, all network templates read information in the interval of 1 time in 3 minutes. I wanted to change this setting to 1 minute. I enter data "1m" - update. The data is not saved and reset to "3m". And even with new hosts it is not possible to change templates. Zabbix 6


    Click image for larger version

Name:	2022-05-31_16-55-14.png
Views:	876
Size:	114.5 KB
ID:	445413Click image for larger version

Name:	2022-05-31_16-55-26.png
Views:	935
Size:	48.8 KB
ID:	445414
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    This is what I usually do with templates:

    - In the template I define macro like {$INTERFACE_INTERVAL} with a suitable value, like 1m
    - In all the item prototypes (and items) in that template, I use the defined macro in the Update interval field (instead of using a fixed value)
    - Then, if I need to change the update interval for some host (using that template) for any reason, I can define the macro in that specific host with a different value
    - Now all the items are now updated with this new interval in this host (and all other hosts are still using the template-provided default value).

    Markku

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #3
      That said, I have Zabbix 6.0.5 on my test server and it has the same problem: the host items have the update interval configurable (not disabled, just like in your screenshot), but any changes are not saved. Looks like a bug. You can open an issue at https://support.zabbix.com to get it fixed.

      Markku

      Comment

      • Mk51
        Junior Member
        • May 2022
        • 8

        #4
        Originally posted by Markku
        This is what I usually do with templates:

        - In the template I define macro like {$INTERFACE_INTERVAL} with a suitable value, like 1m
        - In all the item prototypes (and items) in that template, I use the defined macro in the Update interval field (instead of using a fixed value)
        - Then, if I need to change the update interval for some host (using that template) for any reason, I can define the macro in that specific host with a different value
        - Now all the items are now updated with this new interval in this host (and all other hosts are still using the template-provided default value).

        Markku
        Hello, my friend!
        Thank you for such an interesting solution, however, I have very little understanding of the macro language and the "thin" configuration of templates in general.

        If I understand correctly, then you enter your macro name instead of my values "3m"?
        It would be interesting to look at the solution of this moment in more detail or read some guide.

        PS. I installed zabbix, added hosts with default templates. And that's it. Sorry.

        PSS. Also updated to the latest version 6.0.5, nothing was solved.

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #5
          If I understand correctly, then you enter your macro name instead of my values "3m"?
          Yes.

          PS. I installed zabbix, added hosts with default templates. And that's it. Sorry.
          No need to be sorry, that's what the templates are, they are starting points for your own customizations, just try the changes out.

          PSS. Also updated to the latest version 6.0.5, nothing was solved.
          Yes, as I mentioned, you need to open an issue in https://support.zabbix.com if you want it solved.

          Markku

          Comment

          Working...