Skip to content

Devices without names in arp-scan are not able to be pushed to InfluxDB #124

@teh-hippo

Description

@teh-hippo

Several devices on my network cause the following error message:

2024/09/06 15:18:55 ERROR invalid: unable to parse 'WatchYourLAN,IP=192.168.0.14,iface=eth0,name=,mac=aa:bb:cc:dd:11:22,known=0 state=1': missing tag value

I was able to trace this back to internal/influx/influx.go, where the oneHist name being blank caused the writeAPI to error.

Example, working line:
"WatchYourLAN,IP=10.0.0.5, iface=eth1,name=espressif,mac=aa:bb:cc:dd:11:22,known=0 state=1"

Problematic line:
"WatchYourLAN,IP=10.0.0.14,iface=eth1,name=,mac=aa:bb:cc:dd:11:23,known=0 state=1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions