Ad Widget

Collapse

API execution time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toine7m
    Member
    • Feb 2017
    • 93

    #1

    API execution time

    Hi,

    I'm using the API to create hostgroup, host, items and triggers automatically in PHP but I've some execution time problem.

    I tested this script on the Zabbix server so no network time, and It creates 5 hosts, 2 items per host, and 5 triggers on 1 item by host.

    The total creation script took almost 14 seconds and I need to run this script on a bigger environment (100+ hosts).

    Someone experienced this before ?

    Here's my code if you want to have a look, the main problem is in the function "databaseFill", I've put some "microtime(true)" in there to show the execution time of the script
    ZabbixNexis GitHub

    and here's a picture of the execution time

Working...