diff --git a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua index 9c56e586c..39d1415cc 100644 --- a/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua +++ b/utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua @@ -129,7 +129,9 @@ local function scrape() current_station_values = {} else local name, value = string.match(line, "(.+)=(.+)") - current_station_values[name] = value + if name ~= nil then + current_station_values[name] = value + end end end labels.station = current_station