22 December 2017 15:19
Wanting to add a logo for a ping-only device (Roku). As the OS isn’t detected … is there an easy way to do this? I can add the image to the html/images/os directory, but is there another setting needed (it seems there is, I can’t manually change the OS to roku)?
You can change the OS to Roku in the device settings.
22 December 2017 17:36
Yep, I had tried that, but it won’t “stick” … resets back to “Generic Device” - I assume because “Roku” isn’t recognized?
Yeah Roku is not listed in librenms. Its not in are Devices OS’s. So “Roku OS” is not possible.
22 December 2017 17:50
Makes sense. I just need to find where to add it in … :-). I don’t mind doing it (not at all), just not quite sure where to look yet. But I’ll start digging!
22 December 2017 23:51
You can’t add it in. OS’ are listed from what we detect natively, Linux OS’ are detected from the distro script via snmp so you can’t run this for non-snmp devices.
23 December 2017 01:44
Gotcha, NP. Was just wanted to add in an (OS specific) logo / icon, but if that’s not possible I’ll live with the generic one.
26 December 2018 20:58
Was back looking at this again, some spare time to kill over the break … :-). It seems I can manually change the OS now, and the icon is updated accordingly. I have a Roku SVG file, just need to figure out where to store the mapping (say, “Roku OS” manually entered to an SVG file).
2 January 2019 00:52
FYI, I have this working - sharing in case others want to try this as well. What I needed to do was,
Save a (optimized) image, at html/images/os/roku.svg
Create a definition file (includes/definitions/roku.yaml), contents as below,
icon: roku Force the os to “roku” for the desired devices. I had to do this through MySQL, it didn’t seem to work through the web interface (should it?).
Then it works! And both discovery and polling don’t really run for this (ping-only) device, so the yaml file is just fine.
Thanks for the pointers!
It would be better to put that in your config.php:
$config['os']['roku'] = [
'os' => 'roku',
'text' => 'Roku',
'type' => 'network',
'icon' => 'roku',
2 January 2019 01:44
Will do - thanks for the info!
Is there a better way to “force” (set) the OS? The GUI seems to block it out (or rather, won’t accept ‘roku’).
5 January 2019 20:48
BTW, to confirm … modify config.php instead of roku.yaml, right?
And any way you know of to allow the OS to be set in the GUI (manually)?
Yeah, config.php is better (no git conflicts possible).
There is no way to define an OS via the GUI.
7 January 2019 02:34
That makes sense, will do it that way. Thanks again for the pointers!
6 February 2019 20:03
OK, just noticed (not sure it changed, or I just noticed it) … this works in the detailed individual device view, but not for the device listing?
Yes I’m seeing the same behavior
@murrant or @PipoCanaja
3 March 2019 00:52
Looks like this is fixed in
#9887 … right?