Sysname graph title instead of IP address


Component Version
LibreNMS 1.57-87-gee8119d89
DB Schema 2019_04_22_220000_update_route_table (147)
PHP 7.2.24-1+0~20191026.31+debian9~1.gbpbbacde
MySQL 10.1.41-MariaDB-0+deb9u1
RRDTool 1.6.0

Hi everyone! I’d like to ask you it is possible to change the graph title to e.g. sysname instead of IP address?

From the docs

$config['force_ip_to_sysname'] = false;

When using IP addresses as a hostname you can instead represent the devices on the WebUI by its SNMP sysName resulting in an easier to read overview of your network. This would apply on networks where you don’t have DNS records for most of your devices.

Thanks for reply! Doesn’t matter what I have set up, true or false, everytime I see IP address but I want sysname/hostname. This parameter only has an effect on the all device list.

there is a setting for that too in the doc

Maybe I also missed it where in the docs.

The only way to have this working I found was to set both force_ip_to_sysname and force_hostname_to_sysname to true, it works on most of the place but not on graphs or some specific forms (in billing typically)

But yes setting both to true doesn’t make much sense if we refer to the name of those settings.

Changes or fixes are welcome and that is how LibreNMS works.

I started fixing in a few places and have a PR waiting :slight_smile:

1 Like