I found the custom attribute icon_image which works perfekt with the icons from /usr/share/icingaweb2/public/img/icons.
I want to use some of my own icons and coby them to the directory, but there is no view on icingaweb2.

Any ideas why custom icons dont work?

You should be able to place your own icons beneath /usr/share/icingaweb2/public somewhere. Though preferably a custom directory (path) as Web 2’s paths are managed by packages.

Then use the path relative to .../public (e.g. .../public/your/icon.png would be your/icon.png) and Web 2 should display the icons.


I created a custom directory beneath …/public


drwxr-xr-x 6 root root 4096 Oct 30 2018 css
drwxr-xr-x 2 root root 4096 May 2 13:01 custom
-rw-r–r-- 1 root root 43 Aug 2 2018 error_norewrite.html
-rw-r–r-- 1 root root 418 Aug 2 2018 error_unavailable.html

My icon is placed in this directory:
/usr/share/icingaweb2/public/custom# ll
total 4
-rw-r–r-- 1 root root 1106 May 2 12:10 icons8-wi-fi-16.png

My template:

template Host "cisco-wlc" {
    import "generic-host"
    icon_image =    "custom/icons8-wi-fi-16.png"
    vars.sla = "24x7"

Unfortunately no displayed icon :frowning:

Works very well for me. What does your browser show if you access the icon directly? (<host>/icingaweb2/custom/icons8-wi-fi-16.png)


oh I missed a letter… :man_facepalming::man_facepalming:
It works very fine!!!

Thank you very much!