Hi, I need to get the application name from events, how I can do this?
Ad Widget
Collapse
How to get the application name from an event, API
Collapse
X
-
But an event is related to an application, or am I wrong?
from the documentation:I have a script in Pyzabbix that gets me te events based on an application, like this:applicationids string/array Return only events created by objects that belong to the given applications. Applies only if object is trigger or item.
-Enter the name of the application (CPU, Filsystem, Memory, etc...)
-I get all the events from that application, using applicationids
-then I get the values I need from the events
will this get me all the events?
I was wandering if im getting al the events, maybe I misunderstood something?
Last edited by Molusco; 19-01-2020, 04:06. -
Dear Molusco ,
>But an event is related to an application, or am I wrong?
+ Yes you are right, event is related to an application.
>will this get me all the events?
+ when you call "event.get ( object parameter) by passing applicationid than it will give you all the events created by that applicationid.
+ It is mentioned in documentation that this all would be applicable only if object is trigger.
If you want further clarification than please do let me know.
ThanksComment
Comment