ossobv / gocollect

Data collector using go, periodically posts json to a REST api
GNU General Public License v3.0
6 stars 1 forks source link

collect lldpd information #47

Closed hbos closed 4 years ago

hbos commented 4 years ago

Use case:

Its not a high priority item for now, we could actually do this on the switch side already as an intermediate step.

It looks easy to implement: when lldpd is installed (ubuntu, debian, cumulus), read lldp neighbors with lldpctl (supports json and other output formats).

# lldpctl  -h
Usage:   lldpctl [OPTIONS ...] [COMMAND ...]
Version: lldpd 0.9.9

-d          Enable more debugging information.
-u socket   Specify the Unix-domain socket used for communication with lldpd(8).
-f format   Choose output format (plain, keyvalue, json, json0, xml).

see manual page lldpcli(8) for more information

lldpd does need to be configured to some extend. But thats out of scope for gocollect and should be handled by provisioning process.