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.
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.
Candidates
Open tickets created within the rule's time window and entities, and not yet part of a surge, are collected.
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.
Group
The remaining candidates are split by category and location, then clustered by text similarity.
Create
Every cluster above the minimum ticket count becomes a new surge, named after its most typical ticket.
Text similarity
| Step | What it does | Example |
|---|---|---|
| Normalise | Strips HTML, lower-cases, folds Turkish and Latin diacritics | İNTERNET YOK → internet yok |
| Tokenise | Words of three or more letters; English, Turkish and service-desk stop words are dropped | Hello, please help: the printer → printer |
| Stem | Keeps the first six letters; merges suffixes of agglutinative languages | bağlanamıyorum, bağlantı → baglan |
| Weight | TF-IDF against the latest 1000 tickets; title words count twice | outlook is rare in everyday tickets but shared by the burst, so it weighs a lot |
| Compare | Cosine similarity, then single-linkage clustering | A 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
| Right | Allows | Given on install to |
|---|---|---|
| See surges | Surge list, surge pages, ticket banner | All central-interface profiles |
| Handle surges | Acknowledge, parent ticket, problem, broadcast, solve, dismiss, remove a ticket | All central-interface profiles |
| Rules and settings | Detection rule and settings pages | Profiles that can edit GLPI's configuration |
Installation
cd /var/www/glpi/plugins
sudo tar xzf /tmp/surge-<version>.tgz
sudo chown -R www-data:www-data surge
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.