Open source
GLPI · Plugin

glpi-surge

Catches tickets arriving in the same minutes as one incident.

When the mail server goes down, the service desk does not receive one ticket; it receives dozens within minutes. Surge notices the burst in the queue and lets first-line support handle all of them as a single major incident.

TypeGLPI · Plugin
CompatibilityGLPI 11 · 12
LanguagePHP
LicenceGPL-3.0
Latest releasev0.3.2
DetectionTF-IDF, optional semantic similarity
Tested onGLPI 11.0.x and 12.0.x
Screenshots 1 / 5

Major incidentThe tickets of a burst, the parent ticket and the end-user notice on one screen

Why

During an outage each agent sees two or three tickets about the same problem and answers them one by one. Nobody looks at the whole picture. The same diagnosis is typed ten times, requesters get ten different answers, and even if a problem record is opened, half of the affected tickets are never linked to it.

Surge watches the queue for you. It recognises that tickets arriving in the same category, at the same location and with similar text form a burst, while the burst is still happening. An unrelated printer ticket in the same category stays out.

Features

Real-time detection

Runs when each ticket is created, plus an automatic action every 5 minutes as a safety net.

Understands messy, multilingual titles

Diacritic folding, stop words, prefix stemming and TF-IDF put "Outlook won't open", "OUTLOOK NOT OPENING" and "Email not syncing in Outlook" in the same group.

Rules you can tune and test

Time window, minimum ticket count, same category and location, similarity threshold, ticket type and entity. "Save and test" shows what a rule would group right now, without creating anything.

Optional semantic matching

Plug in an embedding model you host (Ollama, llama.cpp, LocalAI, vLLM) and tickets that share no word but mean the same thing also match. If the model is unreachable, detection silently continues with TF-IDF.

One major incident

A parent ticket is created and all tickets are linked to it; a problem record is opened and one follow-up goes to everyone. Solving the parent ticket solves every linked ticket.

Notices, on-call and notifications

End users see a notice on the self-service portal and a banner on the ticket screen. On-call roster, e-mail and Slack or Teams webhooks are supported.

How it works

The same four steps run for every active detection rule.

  1. Candidates

    Open tickets created within the rule's time window and entities, and not yet part of a surge, are collected.

  2. Join

    A candidate similar enough to a live surge joins it; category and location must match when the rule asks for them. If that surge already has a parent ticket, the new ticket is linked to it.

  3. Group

    The remaining candidates are split by category and location, then clustered by text similarity.

  4. Create

    Every cluster above the minimum ticket count becomes a new surge, named after its most typical ticket.

Text similarity

StepWhat it doesExample
NormaliseStrips HTML, lower-cases, folds Turkish and Latin diacriticsİNTERNET YOK → internet yok
TokeniseWords of three or more letters; English, Turkish and service-desk stop words are droppedHello, please help: the printer → printer
StemKeeps the first six letters; merges suffixes of agglutinative languagesbağlanamıyorum, bağlantı → baglan
WeightTF-IDF against the latest 1000 tickets; title words count twiceoutlook is rare in everyday tickets but shared by the burst, so it weighs a lot
CompareCosine similarity, then single-linkage clusteringA chain of similar pairs is one group

Quick start

  • Assistance → Surge → Detection rules: a default rule is already active (5 or more open tickets in 30 minutes, same category, similar text).
  • Optionally paste a Slack or Teams webhook URL on the Settings page.
  • Wait for a burst, or open a rule and press "Save and test" to see what it would group right now.
  • Open the surge and create the parent ticket with "Create master ticket and link all".
  • Use "Tell everyone" for updates; when the issue is fixed, solve the parent ticket and every linked ticket is solved.

Rights

RightAllowsGiven on install to
See surgesSurge list, surge pages, ticket bannerAll central-interface profiles
Handle surgesAcknowledge, parent ticket, problem, broadcast, solve, dismiss, remove a ticketAll central-interface profiles
Rules and settingsDetection rule and settings pagesProfiles that can edit GLPI's configuration

Installation

From a release
cd /var/www/glpi/plugins
sudo tar xzf /tmp/surge-<version>.tgz
sudo chown -R www-data:www-data surge
Install and activate
sudo -u www-data php /var/www/glpi/bin/console glpi:plugin:install surge -u <admin>
sudo -u www-data php /var/www/glpi/bin/console glpi:plugin:activate surge

The same archive installs on GLPI 11 and 12. On the GLPI 12 image the command is named plugin:install.

Source code, releases and full documentationgithub.com/CodeByPinar/glpi-surge
Open on GitHub
open to new projectsLet's work together