forked from gamersoutreach/librenms-kibanafeel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added LibreNMS theme and installation instructions
- Loading branch information
1 parent
02463db
commit 07eafe0
Showing
5 changed files
with
405 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.