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.
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.
Comment