Hi,
I just started from scratch after an export (zabbix 1.4.2).
After I imported everything in my new database I have 200 hosts in 3 host groups and none are linked to a template.
I want all host in host group number 1 to use template1, all hosts in host group number 2 to use template2 and all hosts in host group 3 to use template3.
I did this the hard way last friday and realized that I had to do 5 mouse clicks per host = a total of 1000 mouse clicks.. that was a nightmare and my right hand took some serious damage
Now I wonder if there is another way to do it ? (a mass update feature under "Configuration/Hosts" would be awesome).
Could this be done with a crazy sql script or maybe some home brewed php tweak ?
Have anyone done this before ?
Im lousy at sql and have never coded php so if anyone have some code that could do this, please help me !
Best Regards /Maximum
I just started from scratch after an export (zabbix 1.4.2).
After I imported everything in my new database I have 200 hosts in 3 host groups and none are linked to a template.
I want all host in host group number 1 to use template1, all hosts in host group number 2 to use template2 and all hosts in host group 3 to use template3.
I did this the hard way last friday and realized that I had to do 5 mouse clicks per host = a total of 1000 mouse clicks.. that was a nightmare and my right hand took some serious damage

Now I wonder if there is another way to do it ? (a mass update feature under "Configuration/Hosts" would be awesome).
Could this be done with a crazy sql script or maybe some home brewed php tweak ?
Have anyone done this before ?
Im lousy at sql and have never coded php so if anyone have some code that could do this, please help me !
Best Regards /Maximum
Seriously, I believe that editing of the XML file would be much more productive and, depending on a text editor, is a good exercise for both hands!
Comment