Ad Widget

Collapse

Cannot clone template

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shaund
    Junior Member
    • Jul 2023
    • 2

    #1

    Cannot clone template

    I am running Zabbix 6.0.19. I have a host that can only be monitored via active checks. I am able to monitor Linux through the "Linux by Zabbix agent active". I would also like to monitor Apache, but there is no active template for that. I re-created this template the long way, by creating the template on Zabbix, and copying everything from the "Apache by Zabbix agent" template, only changing item type from "Zabbix agent" to "Zabbix agent (active)" where required, and of course changing the "Expression" for the triggers as required. This works and I can now monitor Apache via active agent. However, I would also like to monitor PHP-FPM and MySQL. There are no active templates for either of these, so my logic tells me that the easiest way to get active templates for these, is to clone the template and then go in and make the changes. But when I try to clone of full clone a template, I change the name and press the "Add" button, I always get error "Invalid parameter "/1/host": invalid host name.". I also thought that I should be able to export the template, make the necessary changes to the YAML file and then re-import the template, but looking at the YAML file, I see every object in there has a uuid connected to it, so I do not believe that I can do it that way.
    So,
    a) can anybody tell me what the "Invalid parameter "/1/host": invalid host name." error is and how to rectify it.
    b) Can I simply edit the YAML file leaving the uuids as is and re-import the template.
    c) Is there a better way of doing this.
  • Answer selected by shaund at 03-10-2023, 07:37.
    d0d0
    Member
    • May 2023
    • 41

    The problem seems to relate the the template name you choose. When I try to use bracket characters in the name like "(bla)" I will get this error. Without the brackets it works.

    Comment

    • d0d0
      Member
      • May 2023
      • 41

      #2
      The problem seems to relate the the template name you choose. When I try to use bracket characters in the name like "(bla)" I will get this error. Without the brackets it works.

      Comment

      • shaund
        Junior Member
        • Jul 2023
        • 2

        #3
        Hey d0d0

        You are spot on. Thanks. I can now clone my templates.

        Comment

        Working...