Thruks look & feel can be easily changed with themes. There are a few themes already included. Themes normally reside in the themes/themes-available directory. Activate a theme by creating a symlink in the themes/themes-enabled directory. If you use the packaged Thruk version, the themes folder is directly in your Thruk folder. If you are using OMD, the themes folder is in $OMD_ROOT/etc/thruk/themes.

Example of a themes:

  theme/
  ├── images
  │   └── logos -> ../../Classic/images/logos
  ├── stylesheets
  └── templates

Installation

Installation of a theme is easy:

Installation
  1. Unpack the plugin in themes-available directory.

  2. Create a symlink in themes-enabled which points to the theme.

  3. Restart Thruk (if you use mod_fastcgi) or your webserver (if you use mod_fcgid)

Deactivate
  1. Remove the symlink from themes-enabled

  2. Restart Thruk (if you use mod_fastcgi) or your webserver (if you use mod_fcgid)

Uninstall
  1. Remove themes from themes-available

Builtin Themes

Thruk

 Author:      Sven Nierlein
 Download:    This plugin is builtin and shipped with Thruk
thruk theme thruk theme

Classic

 Author:      Nagios
 Download:    This plugin is builtin and shipped with Thruk
classic theme classic theme

Exfoliation

 Author:      Matt Wall
 Download:    This plugin is builtin and shipped with Thruk
exfoliation theme exfoliation theme

Neat

 Author:      Unknown
 Download:    This plugin is builtin and shipped with Thruk
neat theme neat theme

Nuvola

 Author:      Unknown
 Download:    This plugin is builtin and shipped with Thruk
nuvola theme nuvola theme

Vautour

 Author:      Unknown
 Download:    This plugin is builtin and shipped with Thruk
vautour theme vautour theme

Wakizashi

 Author:      Jean Gabes
 Download:    This plugin is builtin and shipped with Thruk
wakizashi theme wakizashi theme

Write your own themes

The directory structure of a theme contains just a few folders and you don’t need all of them for every theme.

Let me know if you want to get your theme listed here.
  theme/
  ├── images
  │   └── logos -> ../../Classic/images/logos
  ├── stylesheets
  └── templates
Structure
  • images containts all images needed by this theme. Make sure you have at least the basic images.

  • logos contains all logos, should be a symlink to your logos folder unless you have special logos in this theme.

  • stylesheets contain your css files.

  • templates contains all template files. You can override normal templates in your theme and therefor completly rewrite the html output.

Easiest way would be to copy an existing theme and change it to your needs.
Edit page on GitHub