In this recipe, we'll learn how to select graphics for hosts, to appear in various parts of the Nagios Core web interface. This is done by adding directives to a host to specify the paths to appropriate images to represent it.
Adding these definitions has no effect on Nagios Core's monitoring behavior; they are mostly cosmetic changes, although it's useful to see at a glance whether a particular node is a server or a workstation, particularly on the network map.
You will need to be running a Nagios Core 3.0 or newer server, and have access to its web interface. You must also be able to edit the configuration files for the server.
It's a good idea to check that you actually have the required images installed. The default set of icons is included in /usr/local/nagios/share/images/logos
. Don't confuse this with its parent directory, images
, which contains images used as part of the Nagios Core web interface itself.
In the logos
directory, you should find a...