Cambiare la priorità di un trigger aperto in Zabbix
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;