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.
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.
/usr/share/icingaweb2 and all files and sub-directories belong to user&group root with 755 permissions for the directories and 744 permissions for the files.
So the icons under /usr/share/icingaweb2/public/img/icon have 744 permissions
In training a couple of weeks back, the trainer showed a way to display all available icons from within Icinga Web, but I can’t recall what that page was.
Would anyone know?
Thank you,
Jean
First approach: add the following to /etc/httpd/conf/httpd.conf:
<Directory "/usr/share/icingaweb2/public/img/icons">
Options Indexes FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
After an httpd restart, the page https://your-icinga/icingaweb2/img/icons/ will then show the list of files names without the pictures, but a click on the name will show the picture.
Second approach: copy the icons directory on a workstation and view the files in a file browser. Much more effective