I'm not sure if this is possible, and haven't had much luck with it...
I'm using Dashing as dashboard and Zabby for the API integration (started with the following: https://github.com/tolleiv/dashing-zabbix) . Currently using Zabbix 2.4.7.
I use the following in the running job to get the trigger information for problem triggers:
Zabby::Trigger.get(
'filter' => { 'priority' => states.keys },
'output' => 'extend',
'only_true' => 'true',
'monitored' => 1,
'selectItems' => 1,
'skipDependent' => 1,
'expandDescription' => 1,
'expandData' => 'host'
)
However, I haven't had any luck in adding 'selectLastEvent' to grab more than the eventid. It seems selectLastEvent is similar to an event.get, but I can't specify 'select_acknowledges' in order to retrieve the message field for the most recent acknowledgement.
Anyone who might be able to point me in the right direction on this?
I'm using Dashing as dashboard and Zabby for the API integration (started with the following: https://github.com/tolleiv/dashing-zabbix) . Currently using Zabbix 2.4.7.
I use the following in the running job to get the trigger information for problem triggers:
Zabby::Trigger.get(
'filter' => { 'priority' => states.keys },
'output' => 'extend',
'only_true' => 'true',
'monitored' => 1,
'selectItems' => 1,
'skipDependent' => 1,
'expandDescription' => 1,
'expandData' => 'host'
)
However, I haven't had any luck in adding 'selectLastEvent' to grab more than the eventid. It seems selectLastEvent is similar to an event.get, but I can't specify 'select_acknowledges' in order to retrieve the message field for the most recent acknowledgement.
Anyone who might be able to point me in the right direction on this?
Comment