It would be awesome if we could create our custom device type like: Switche, Router, Access Point, Wireless controller… from the GUI.
And also have the ability to assgin automatically this decive types on discovery process, based on the device hardware or a comnbinations of hostname and os …
Thanks for all.
4 Likes
I’m new to Librenms and loving it so far. Is there any hope of adding routers, switches, wireless, phone, and PBX to the device type or allowing us to add our custom list?
Thanks
Rudy
I know I can do groups, but Device Type makes grouping devices easier,
This all is only an educated guess (and some lookup) by me, so take it with a grain of salt but … I don’t think this is feasible. type is a column at the table for Devices, its values are strings like ‘environment’. These are also referenced by countless definitions for device models (I will call then that way even though they are the actual device types), for example includes/definitions/rittal-cmc.yaml.
These references are basically hard-coded. Even if you would block the existing ones from getting deleted from a separate device type table, there is simply no way to publish your own device model definitions because you cannot ensure that the used device type is even present at the other LibreNMS instances. Even worse: what happens, if you delete one type? All corresponding devices would remain without a type – or rather a non-existing one. Who knows to what errors this would lead …
Of course you can expand your amount of types and also model definitions locally, but then you have to run a fork. Definitions are a static affair; dynamically managed types don’t work well, I guess.
(By the way: I didn’t look up how the existing device types are determined. I guess either by using database/factories/DeviceFactory.php or by simply querying the devices tables.)