StackStorm-Exchange / stackstorm-zabbix

Apache License 2.0
16 stars 21 forks source link

user.addmedia is deprecated in Zabbix 4.0 #28

Closed thebeerman closed 5 years ago

thebeerman commented 5 years ago

When running register_st2_config_to_zabbix.py against a Zabbix 4.x installation, the script fails trying to add a user media.
Per Zabbix 3.4 documentation https://www.zabbix.com/documentation/3.4/manual/api/reference/user/addmedia "This method is deprecated and will be removed in the future. Please use user.update instead."

Error when running the script pyzabbix.api.ZabbixAPIException: ('Error -32602: Invalid params., Incorrect method "user.addmedia". while sending ......

userlocalhost commented 5 years ago

Sorry for late to reply and thank you for telling it. I confirm this problem. And I should be able to fix it.