Cambiare la priorità di un trigger aperto in Zabbix

From RVM Wiki
Revision as of 10:43, 28 May 2026 by Gabriele.vivinetto (talk | contribs) (Created page with "Se si cambia la priorità per un Trigger di un problema aperto, la stessa rimane uguale fino a che non si chiude il problema. Un modo per aggiornarla è ytramite DB: * Trovare l'eventid: <pre> use zabbix SELECT p.eventid, h.host, t.description FROM problem p JOIN triggers t ON t.triggerid = p.objectid JOIN functions f ON f.triggerid = t.triggerid JOIN items i ON i.itemid = f.itemid JOIN hosts h ON h.hostid = i.hostid WHERE p.r_eventid IS NULL AND h.host = 'myhostname....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Se si cambia la priorità per un Trigger di un problema aperto, la stessa rimane uguale fino a che non si chiude il problema.

Un modo per aggiornarla è ytramite DB:

  • Trovare l'eventid:
use zabbix

SELECT p.eventid, h.host, t.description FROM problem p JOIN triggers t ON t.triggerid = p.objectid JOIN functions f ON f.triggerid = t.triggerid JOIN items i ON i.itemid = f.itemid JOIN hosts h ON h.hostid = i.hostid WHERE p.r_eventid IS NULL AND h.host = 'myhostname.example.com';


+-----------+--------------------------------+-----------------------------------------------------------------------------+
| eventid   | host                           | description                                                                 |
+-----------+--------------------------------+-----------------------------------------------------------------------------+
| 103815828 | myhostname.example.com | Zabbix Agent is OLD                                                         |
| 103963978 | myhostname.example.com | MSSQL: Percentage of work tables available from the work table cache is low |
| 104561497 | myhostname.example.com | MSSQL Job 'syspolicy_purge_history': Job duration is high                   |
+-----------+--------------------------------+-----------------------------------------------------------------------------+
  • Aggiornare la prioriti ad Informational (1) usando l'eventid voluto (103963978);:
UPDATE problem
SET severity = 1
WHERE eventid = 103963978;