Hey guys.
I'm building a template (that will be applied in hosts from group 'A') that uses an 'script' item. The JS script would need to perform an action for each host that exists in group 'B' (it's an http request).
I can solve the problem using the parameters in the script item, manually inserting the information, but i would like to do something automatic.
I was thinking about that Zabbix API methods, never used them a lot but i know exists something like hostgroups.get. Do you know any way to use this methods inside the script item? os any other idea how to solve this?
Thanks.
I'm building a template (that will be applied in hosts from group 'A') that uses an 'script' item. The JS script would need to perform an action for each host that exists in group 'B' (it's an http request).
I can solve the problem using the parameters in the script item, manually inserting the information, but i would like to do something automatic.
I was thinking about that Zabbix API methods, never used them a lot but i know exists something like hostgroups.get. Do you know any way to use this methods inside the script item? os any other idea how to solve this?
Thanks.
Comment