Hi Folks,
I know from the Zabbix Docs that we can't use the Zabbix ITEM API to create/update or delete web items. What I can't figure out is why I can't use the ITEM.GET command to get information from a Web Item, as it is only reading the information, and not altering it in any way...?
My alertscript uses the ITEM's associated Application ID to figure out where it needs to open a ticket and the overall process works well with normal items, but when the Event comes from a Web Item/Trigger, my process stops as the item.get is not able to get Web Item properties.
I've managed a work-around by editing the API's CItem.php file, and took out the "web item" exclusion from the DB query, however I don't feel comfortable with having to maintain a file and "fix" it every time I upgrade to a new version of Zabbix.
Does anyone know why there is a restriction on item.get for web items? Should I open a "Bug/Feature" request?
Thanks!
Gleepwurp.
I know from the Zabbix Docs that we can't use the Zabbix ITEM API to create/update or delete web items. What I can't figure out is why I can't use the ITEM.GET command to get information from a Web Item, as it is only reading the information, and not altering it in any way...?
My alertscript uses the ITEM's associated Application ID to figure out where it needs to open a ticket and the overall process works well with normal items, but when the Event comes from a Web Item/Trigger, my process stops as the item.get is not able to get Web Item properties.
I've managed a work-around by editing the API's CItem.php file, and took out the "web item" exclusion from the DB query, however I don't feel comfortable with having to maintain a file and "fix" it every time I upgrade to a new version of Zabbix.
Does anyone know why there is a restriction on item.get for web items? Should I open a "Bug/Feature" request?
Thanks!
Gleepwurp.

Comment