Extra Device Types

Hi,

We have just started using LibreNMS to monitor our enviroment. We have a lot of PLCs, which don’t fit any current device type group.

Would be nice to have an extra device type “PLC”

Thanks

1 Like

What’s a PLC?

1 Like

PLC = Programmable logic controller

Rather then attempt to explain i’ll link the Wikipedia article

Thanks

1 Like

Why not make a device group for that?

1 Like

Could do, but still LibreNMS requires each device to have a Device Group and non of the current options are suitable.

An “Other” group would also be an option as i’m sure there are plenty of other devices which don’t fit into any of the current types.

1 Like

I would also like to see ability to add custom device types. We have our own business procedures (as any company does) and we would like to use device types in LibreNMS that we use in all other company procedures.

Before there was a way to edit config.php and add custom device types.

Why has this feature gone away?

It hasn’t code additions are needed.

1 Like

Actually, it works. I was probably doing something wrong. I added few custom device types to config.php and now they are available.

1 Like

Hi,

I have created custom device types in the /opt/librenms/includes/definitions.inc.php file.

How are these types assigned to devices on discovery?

I.e. could I configure a “switch” device and configure librenms to assign switch device type only to switches instead of the default “network” type?

Thanks in advance.

I would also like to be able to add custom device types - or, if not planned, at least an “other” type.

We have some servers with RAID controllers that are connected to the network with their own uplink, IP, hostname and configured to serve snmp. They are (obviously) part of a server, but not a server themselves, so the other categories don’t fit.
Currently I group them together with a device group but that isn’t failsafe. I would like to be able to select a device type “RAID Controller” or even simpler “Controller” to see all of them on one page without having to remember to manually add new devices to a device group.

Can’t you just do this?

lnms config:set device_types.+ '{"icon": "phone", "text": "Phone", "type": "phone"}'

Edit update to correct syntax

Hmmm… looks like this might work.

When trying to find information on that topic, I mostly ended up on discussions stating “it’s hardcoded in includes/definitions.inc.php”. This file doesn’t exist anymore, so I assume they are outdated threads.

I see that the “default” device types are now configured in ./resources/definitions/config_definitions.json, but unfortunately, docs.librenms.org doesn’t have ANY information on that feature.

config_definitions.json should never be edited. This is only initial values for config settings. Everything in there can be overridden with lnms config:set and editing will very likely break updates.

Thanks, but I already know that :slight_smile:
I did mention this just to make clear where I was looking for context for my research.
The thing I wanted to highlight was that there’s no information in the docs about the topic “how to manage own device types” in general.
Sadly, it happens quite often that I stumble upon outdated parts on the docs page.

As LibreNMS is a community project (only volunteers work on it), it can take some time to get things updated. Any help is appreciated.

1 Like