Upgrade from zabbix 1.8 -> 2.0 breaks own script
hertell opened this issue · 2 comments
The new API has got a re-make of all parameter-names starting select_xxx like:
select_hosts → selectHosts
select_triggers→ selectTriggers
etc.
Running an item-update with triggers fails with an error like:
Zabbix server replied: Cannot update "templateid" for item "App Warning: App Live memory usage". at /home/user/zabbixmanager/Zabbix/API/CRUDE.pm line 139
Sorry for the delay...
I've mostly finished rewriting Zabbix::API for the 2.x series, it now lives at https://metacpan.org/pod/Zabbix2::API (repository and issue tracker: https://bitbucket.org/fgabolde/zabbix2-api).
Most of the methods should be similar, but not quite, so be sure to read the documentation!
Hi Fabrice,
Great news! Thanks, i will do a test-install of zabbix 2.x and give it a try :-)