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


Ad Widget
Collapse
Problem with changing existing template
Collapse
X
-
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 -
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.
MarkkuComment
-
Hello, my friend!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
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
-
Yes.If I understand correctly, then you enter your macro name instead of my values "3m"?
No need to be sorry, that's what the templates are, they are starting points for your own customizations, just try the changes out.PS. I installed zabbix, added hosts with default templates. And that's it. Sorry.
Yes, as I mentioned, you need to open an issue in https://support.zabbix.com if you want it solved.PSS. Also updated to the latest version 6.0.5, nothing was solved.
MarkkuComment
Comment