alert.get

    The method allows to retrieve alerts according to the given parameters.

    This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See for more information.

    Parameters

    The method supports the following parameters.

    (integer/array) Returns either:

    • an array of objects;
    • the count of retrieved objects, if the countOutput parameter has been used.

    Examples

    Retrieve alerts by action ID

    Request:

    Response:

    1. "jsonrpc": "2.0",
    2. {
    3. "alertid": "1",
    4. "actionid": "3",
    5. "eventid": "21243",
    6. "userid": "1",
    7. "clock": "1362128008",
    8. "mediatypeid": "1",
    9. "sendto": "[email protected]",
    10. "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",
    11. "status": "0",
    12. "error": "",
    13. "esc_step": "1",
    14. "alerttype": "0",
    15. "p_eventid": "0",
    16. "acknowledgeid": "0"
    17. }
    18. ],
    19. }

    Source