Skip to content

Commit

Permalink
Added LibreNMS theme and installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
wastrachan committed Feb 18, 2020
1 parent 02463db commit 07eafe0
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 2 deletions.
74 changes: 72 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,72 @@
# librenms-kibanafeel
Dark Theme for LibreNMS, Inspired by Kibana's Dark Theme
LibreNMS Kibanafeel Theme
=========================
Kibana-Inspired Dark Theme for LibreNMS


## Screenshots
<img src="resources/images/dash.png" title="Dashboard" width="300" style="border: 5px solid #EEEEEE; margin: 5px;"/>
<img src="resources/images/devices.png" title="Device List" width="300" style="border: 5px solid #EEEEEE; margin: 5px;"/>
<img src="resources/images/device.png" title="Device" width="300" style="border: 5px solid #EEEEEE; margin: 5px;"/>


## Installation
Copy `theme_kibanafeel.css` to your installation's CSS directory. Depending on the location of your root directory, this might look like:

```shell
cp theme_kibanafeel.css /opt/librenms/html/css/custom/theme_kibanafeel.css
```

Because certain style-related options are determined by PHP settings and not by CSS, some settings overrides are required. In your installation's configuration, add the following:

```php
<?php

# Theme Configuration
$config['webui']['custom_css'][] = "css/custom/librenms_kibanafeel.css";
$config['rrdgraph_def_text_color'] = '98A2B3';
$config['list_colour']['even'] = "#1d1e24";
$config['list_colour']['odd'] = "#1d1e24";
$config['list_colour']['highlight'] = "#1d1e24";
$config['list_colour']['even_alt'] = "#1d1e24";
$config['list_colour']['odd_alt'] = "#1d1e24";
$config['list_colour']['even_alt2'] = "#1d1e24";
$config['list_colour']['odd_alt2'] = "#1d1e24";
```


## Installation with Docker
When LibreNMS is run inside of a docker container, theme installation can be accomplished with volume mounts. The following example is based on [LibreNMS's published Docker images and docker-compose.yml](https://github.com/librenms/docker) file.


##### Create a configuration override file `./librenms/config/override.php`:
```php
<?php

# Theme Configuration
$config['webui']['custom_css'][] = "css/custom/librenms_kibanafeel.css";
$config['rrdgraph_def_text_color'] = '98A2B3';
$config['list_colour']['even'] = "#1d1e24";
$config['list_colour']['odd'] = "#1d1e24";
$config['list_colour']['highlight'] = "#1d1e24";
$config['list_colour']['even_alt'] = "#1d1e24";
$config['list_colour']['odd_alt'] = "#1d1e24";
$config['list_colour']['even_alt2'] = "#1d1e24";
$config['list_colour']['odd_alt2'] = "#1d1e24";

```
More information on configuring the LibreNMS container [here](https://github.com/librenms/docker/blob/master/doc/notes/edit-config.md).

##### Add the following volumes to the `librenms` service:

```yaml
volumes:
- "./librenms:/data"
- "./librenms_kibanafeel.css:/opt/librenms/html/css/custom/librenms_kibanafeel.css"
```
## Contributing
Pull-requests to improve this theme are welcome! I do however ask that you try to make any changes consistent with the look, feel, and color pallet of Kibana, as that was the base inspiration for this theme.
## License
The content of this project itself is licensed under the [MIT License](LICENSE).
Binary file added resources/images/dash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/device.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/devices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 07eafe0

Please sign in to comment.