The problem is that when pytaeshsya update trigger, first read its configuration through the function trigger.get. Then, when the function trigger.update pytaeshsya save the modified trigger that got through trigger.get, then you get an error.
Reason: trigger.get returns a row for the conditions in view of
{12 345}= 0, where 12 345 is the number of terms in the database. While trigger.update need normal form of the condition - human-readable (eg: template_windows: vfs.fs.size [c:, free]. Last (0)} <10).
Mostly correspondence on this issue is reflected in the forum thread: http://www.zabbix.com/forum/showthread.php?t=19390
----------------------------------------------------
???? ???????? ??????????? ? ???, ??? ????? ???????? ???????? ???????, ??????? ??????????? ??? ???????????? ????? ??????? trigger.get. ?????, ????? ? ??????? trigger.update ???????? ????????? ?????????? ???????, ??????? ??????? ????? trigger.get, ?? ????????? ??????.
???????: trigger.get ?????????? ?????? ??? ??????? ?????
{12345}=0, ??? 12345 ??? ????? ??????? ? . ? ?? ????? ??? trigger.update ????? ?????????? ????? ?????? ??????? - ??????????? ??? ????????(??????: template_windows:vfs.fs.size[c:,free].last(0)}<10).
????????? ????????? ?? ?????? ???????? ???????? ? ????? ??????: http://www.zabbix.com/forum/showthread.php?t=19390
- duplicates
-
ZBX-2060 api trigger.get should be able to return expanded expressions and descriptions
- Closed