You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
h.hostname as hostname,
hsc.field_value as device_name,
dt.data_source_path as rrd_path
FROM data_local dl
JOIN host h on dl.host_id = h.id
JOIN data_template_data dt on dt.local_data_id = dl.id
LEFT JOIN host_snmp_cache hsc on h.id = hsc.host_id
AND dl.snmp_index = hsc.snmp_index
WHERE dt.data_source_path IS NOT NULL
AND dt.data_source_path != ''
AND (hsc.field_name = 'ifName' OR hsc.field_name = 'dskDevice' OR hsc.field_name is NULL)
procurve01.ams.example.com doesn't have a ifNamefield_name, but there's plenty of information to tell us that it's a real piece of hardware with a real interface and a real rrd file. We should be smarter about this query.
The text was updated successfully, but these errors were encountered:
For example, we do this query:
On data that looks like:
procurve01.ams.example.com
doesn't have aifName
field_name
, but there's plenty of information to tell us that it's a real piece of hardware with a real interface and a real rrd file. We should be smarter about this query.The text was updated successfully, but these errors were encountered: