From LibreNMS to InfluxDB custom data

Dear All,

is there any way that LibreNMS can send custom data to InfluxDB?
My problem is, that the monitored devices added by IP address, and the Hostname in InfluxDB also these IPs. And there is no data in InfluxDB what is the “System Name” of these devices.

Can I add it somehow, or is there any other solution that InfluxDB can receive the IP/Hostname and System name?

Thank you!

Sorry I’m confused.

We will send the IP as the hostname to influxdb so you should be able to query the data based on IP.

Yeah, but if LibreNMS send only the IP as hostname to InfluxDB and not the system name, how should I query from InfluxDB the system name if it is not contain it?

My InfluxDB connecting to Grafana, and I want to see the system name too, not the IP.

Not sure if it will work but, did you tried $config['force_ip_to_sysname'] = true;?

I think it will not work, but you can give it a try.

If doesnt work, the only way is to implement it.

force_ip_to_sysname won’t work, it is only for the webui.

Honestly, the best way is to add devices by name to LibreNMS. If you can’t add them to your existing DNS, you can set up a DNS server on your librenms server and add hostnames there.

I did not wanted to add the devices by name but IP, because if there is any DNS problem, the IP checking will still works, and LibreNMS can get the name of the devices this way too.

So the question is, can I somehow modify LibreNMS to send the system name too to InfluxDB, or is there a way to you can implement it?
I think it will be the best way if anybody can add any available data to the flow sending toward InfluxDB, but I think that is time to develope it.

What about using /etc/hosts instead of DNS?

Honestly, I have a live system with 100+ devices. I do not really want to add or modify them one by one.