I use trigger.get method to get all problems in my Zabbix monitoring:
trigger = zapi.trigger.get (triggerids=problem['objectid'], selectHosts='extend')
and it works propertly. But I get response for example:
'description': '{HOST.NAME} ( {ITEM.VALUE1} ) Lack of free swap space'
or
'description': 'DBM {HOST.NAME} ORA_ERR_DETAILS: {ITEM.VALUE1}'
and now I would like to get value "ITEM.VALUE1"
What method should he use and how?
In a more descriptive way:
My program return value:
'{HOST.NAME} ( {ITEM.VALUE1} ) Lack of free swap space'
I can get the '{HOST.NAME}', but I can't get the '{ITEM.VALUE1}'.
I would like to have:
Host005.domain.com ( 42.52 % ) Lack of free swap space
Thanks to the hint from Simone, the problem is resolved!
A well-functioning code: