Option to return sysName to Oxidized feeder

Currently when adding a device to LibreNMS, you can set an option to “force_ip_to_sysname” for the LibreNMS main program. This is useful for environments where all network devices are not in DNS. However, the hostname that’s returned to the Oxidized API feeder is still returned as an IP address.

I would like to see an option that could return the sysName of a device to Oxidized feeder if at all possible.

Example:

When adding a host by IP address:
curl -H ‘X-Auth-Token: xxxxxxxxxxx’ http://localhost/api/v0/oxidized returns:

{
    "hostname": "10.96.0.32",    <--- would like a toggle option to return sysName on devices 
    "os": "junos",
    "group": "default"
},
1 Like

I’m not sure oxidized supports a value for a device name. Also, if sysName isn’t a valid DNS name it would fail.

1 Like