Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

GLPI Zabbix Integration by python script

By CDRTecnologia

How To

  1. pip install -r requirements.txt

  2. Set the environment variables or change the values on the script

    1. GLPI_TOKEN = GLPI APP token on setup > General > API
    2. GLPI_URL = url.of.glpi.server/apirest.php
    3. GLPI_AUTH_TOKEN = User token on this format -> "user_token GLPIUSERTOKEN"
    4. GLPI_SOLUTION_ID = ID of a created type of ticket solution. When ticket is closed, the script use this solution type
    5. GLPI_ENTITIES_ID = Default entity when script open the ticket - root entity = 0
    6. ZabbixURL = Zabbix Server URL
    7. ZabbixUser = Zabbix User with rights to write on the problem
    8. ZabbixPass = Zabbix pass from user above
  3. Create Zabbix Action to run the script

    1. Configuration > Action > New or edit an existing one

    2. In operations set type to remote command, check current host, choose custom script on type and execute on zabbix server. In commands set the following:

      1. /path/to/python /path/to/ -a create -e {EVENT.ID} -n '{EVENT.NAME}' -o "{HOST.NAME}" -t {TRIGGER.ID}
    3. In recovery operations do the same but with the following command:

      1. /path/to/python /path/to/ -a finish -e {EVENT.ID}

      Hint: You can manage steps to delay the ticket creation.

Hint2: You can manage custom behaviors in Administration > Rules > Business Rules for tickets


No description, website, or topics provided.



No releases published


No packages published