Dear librenms community
Is there a way to add custom fields to the device configuration?
We are looking to integrate libreNMS with an inventory system and would like to add additional fields to the device in order to filter devices by additional properties/attributes
Thank you
Hello,
There is no way to do that from the GUI out of the box.
But the LibreNMS database is allowing custom components. That gives you 2 options :
If the inventory system is a product (can be commercial or open source, no difference) then probably other users would be interested to integrate as well, and the 1st solution (extend LibreNMS GUI to create a compatibility layer with this product) would be best.
If the inventory system is home made, then the plugin option would probably be better, as the probability somebody else is interested would be very low.
If you give us a little more details, we would probably be able to help you decide the best solution.
Bye
I have same problem, but I don’t need to use the gui, i use rrd data directly.
It’s not a good way, but it works. I have created another table in librenms mysql database to draw graphs in grafana with dashboard templating using our inventory data instead of librenms data.
Example:
CREATE TABLE upv_ports2id
(
upv_hostname
varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
upv_portName
varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
ifIndex
bigint(20) DEFAULT ‘0’,
port_id
int(11) NOT NULL DEFAULT ‘0’,
device_id
int(11) NOT NULL DEFAULT ‘0’
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |