librenms icon indicating copy to clipboard operation
librenms copied to clipboard

Ports - filter by display

Open damsitt opened this issue 2 months ago • 2 comments

The problem

I added hosts to LibreNMS using the API. The hostname is actually the IP address, while I set the real hostname in the display field. When I search globally, the devices show up correctly under “FW”, and the same happens in the Devices section. However, the issue appears in the Ports section — when I type “FW”, nothing shows up, but when I search using the IP address, it finds the device correctly, even though the display field is visible.

The similar issue in Sensor section was fixed in #18521

Output of ./validate.php

All OK

What was the last working version of LibreNMS?

25.11.0

Anything in the logs that might be useful for us?


damsitt avatar Nov 22 '25 23:11 damsitt

Not sure if i understand you issue correctly but i think you want to set "Default device display name template" to sysName or hostname fallback to sysname Globalsettings -> Web UI -> Device Settings. Big portions of librenms use display name if its set to hostname thats the ip address. Not sure if individual device overrides are used the same way.

jepke avatar Dec 10 '25 13:12 jepke

They want to set display template to a literal name and be able to search for it. Silly I know, but it is much better than the alternative.

murrant avatar Dec 10 '25 15:12 murrant