task.create

    This method allows to create a new task (such as collect diagnostic data or check items or low-level discovery rules without config reload).

    This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.

    Parameters

    (object/array) A task to create.

    Note that ‘Check now’ tasks can be created only for the following types of items/discovery rules:

    • SNMPv1/v2/v3 agent
    • Simple check
    • Internal check
    • External check
    • Database monitor
    • HTTP agent
    • IPMI agent
    • TELNET agent
    • Calculated check
    • JMX agent

    Returns an object containing the IDs of the created tasks under the taskids property. One task is created for each item and low-level discovery rule. The order of the returned IDs matches the order of the passed .

    Examples

    Creating a task

    Create a task check now for two items. One is an item, the other is a low-level discovery rule.

    Response:

    Create a task task. Request:

    Response:

    Source