Ad Widget

Collapse

How to get the application name from an event, API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Molusco
    Junior Member
    • Dec 2019
    • 20

    #1

    How to get the application name from an event, API

    Hi, I need to get the application name from events, how I can do this?
  • Molusco
    Junior Member
    • Dec 2019
    • 20

    #2
    But an event is related to an application, or am I wrong?


    from the documentation:
    applicationids string/array Return only events created by objects that belong to the given applications. Applies only if object is trigger or item.
    I have a script in Pyzabbix that gets me te events based on an application, like this:

    -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.

    Comment

    • Manishk
      Junior Member
      • Apr 2019
      • 12

      #3
      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.

      Thanks

      Comment

      Working...