SELECT b.target_host AS 'host',
a.target_ip AS 'Target',
a.monitor_type AS 'Type Monitor',
Concat (a.metric_name, "", a.metric_value) AS "metric name value"
FROM pm_sis_raw_metrics AS a
INNER JOIN pm_sis_hs_metrics AS b
ON a.id = b.id
WHERE metric_value > 80
AND ( metric_name = "utilization"
OR metric_name = "physical memory used %"
OR metric_name = "disk/file system/[c]/percent full"
OR metric_name = "% packets good" )
Error 1052: Column 'metric_name' in where clause is ambiguous
您必须使用列名指定表别名,例如 a.metric_name in where cause。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.