Ad Widget

Collapse

Zabbix API problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kleoli
    Junior Member
    • Apr 2016
    • 1

    #1

    Zabbix API problem

    Hi,

    is there any possibility to get for a discovered trigger the according template.

    In the GUI you can see it by clicking on the trigger and moving to trigger_prototypes.php.

    What I want:
    I need to get a list of all triggers from a hostgroup with their correlating template description. This has to be generated automatically.

    What I already did:
    - Use trigger.get -> group with selecTrigger for getting all triggers.
    - Read state of triggger 0/4 for normal or discovered
    - Checking for templateid or use hosts->hostid to get template
    - If trigger is discovered - use triggerprototype.get with hosts->hostid

    But there is no link to the real template id.

    Thanks,
    Oliver
Working...