prometheus-node-exporter-ucode: fix sporadic wifi errors and warnings 23316/head
authorAndre Heider <a.heider@gmail.com>
Wed, 8 Nov 2023 14:15:52 +0000 (15:15 +0100)
committerAndre Heider <a.heider@gmail.com>
Wed, 7 Feb 2024 13:17:17 +0000 (14:17 +0100)
commit77140e85bd22081dd865f60a1f4acea949c54315
treecbcaa84ba88a2beed7a30876845e57ca94e00dc2
parent5c4ccd5fcd6e22696ecf7d03f42094b7e6ab7b38
prometheus-node-exporter-ucode: fix sporadic wifi errors and warnings

Some properties may not yet be available, properly guard them.

Fixes error like:
daemon.err uhttpd[2116]: error running collector 'wifi':
daemon.err uhttpd[2116]: left-hand side expression is null

Signed-off-by: Andre Heider <a.heider@gmail.com>
utils/prometheus-node-exporter-ucode/Makefile
utils/prometheus-node-exporter-ucode/files/extra/wifi.uc