AS
Size: a a a
AS
KB
KB
AS
KB
FM
FM
FM
YK
SELECT DISTINCT
p.eventid,
p.objectid,
p.clock * 1000 clock,
p.clock * 1000 r_clock,
i.hostid host_id,
h.host h_host,
h.name h_name,
p.ns,
p.name 'trigger name',
p.severity 'Severity',
hi.model,
hi.asset_tag
FROM
problem p
LEFT JOIN
event_suppress es ON es.eventid = p.eventid
LEFT JOIN
functions f ON p.objectid = f.triggerid
LEFT JOIN
items i ON f.itemid = i.itemid
LEFT JOIN
hosts_groups hg ON i.hostid = hg.hostid
LEFT JOIN
hosts h ON i.hostid = h.hostid
LEFT JOIN
host_inventory hi ON h.hostid = hi.hostid
WHERE
p.source = '0' AND p.object = '0'
AND hg.groupid = $group_id
AND p.severity BETWEEN '1' AND '5'
AND es.eventid IS NULL
AND p.r_eventid IS NULL
AND p.acknowledged=0
ORDER BY p.eventid DESC LIMIT 100;
C
FM
SELECT DISTINCT
p.eventid,
p.objectid,
p.clock * 1000 clock,
p.clock * 1000 r_clock,
i.hostid host_id,
h.host h_host,
h.name h_name,
p.ns,
p.name 'trigger name',
p.severity 'Severity',
hi.model,
hi.asset_tag
FROM
problem p
LEFT JOIN
event_suppress es ON es.eventid = p.eventid
LEFT JOIN
functions f ON p.objectid = f.triggerid
LEFT JOIN
items i ON f.itemid = i.itemid
LEFT JOIN
hosts_groups hg ON i.hostid = hg.hostid
LEFT JOIN
hosts h ON i.hostid = h.hostid
LEFT JOIN
host_inventory hi ON h.hostid = hi.hostid
WHERE
p.source = '0' AND p.object = '0'
AND hg.groupid = $group_id
AND p.severity BETWEEN '1' AND '5'
AND es.eventid IS NULL
AND p.r_eventid IS NULL
AND p.acknowledged=0
ORDER BY p.eventid DESC LIMIT 100;
FM
OL
Т
IA
AS
OL
IA
OL
FM
SELECT DISTINCT
p.eventid,
p.objectid,
p.clock * 1000 clock,
p.clock * 1000 r_clock,
i.hostid host_id,
h.host h_host,
h.name h_name,
p.ns,
p.name 'trigger name',
p.severity 'Severity',
hi.model,
hi.asset_tag
FROM
problem p
LEFT JOIN
event_suppress es ON es.eventid = p.eventid
LEFT JOIN
functions f ON p.objectid = f.triggerid
LEFT JOIN
items i ON f.itemid = i.itemid
LEFT JOIN
hosts_groups hg ON i.hostid = hg.hostid
LEFT JOIN
hosts h ON i.hostid = h.hostid
LEFT JOIN
host_inventory hi ON h.hostid = hi.hostid
WHERE
p.source = '0' AND p.object = '0'
AND hg.groupid = $group_id
AND p.severity BETWEEN '1' AND '5'
AND es.eventid IS NULL
AND p.r_eventid IS NULL
AND p.acknowledged=0
ORDER BY p.eventid DESC LIMIT 100;