1 Introduction

1.1 Goals

1.2 Notes

2 Exercises

3 PART VI - Extended Host Information ("making your graphs pretty")

3.1 1. Update extinfo_nagios2.cfg

If you would like to use appropriate icons for your defined hosts in Nagios this is where you do this. In this class, we only have one type of device (Ubuntu servers).

There is a fairly large repository of icon images available for you to use located here:

/usr/share/nagios/htdocs/images/logos/

... these were installed by default as dependent packages of the nagios3 package in Ubuntu. In some cases you can find model-specific icons for your hardware, but to make things simpler we will use the following icons for our hardware:

/usr/share/nagios/htodcs/images/logos/base/debian.*

The next step is to edit the file /etc/nagios3/conf.d/extinfo_nagios2.cfg and tell nagios what image you would like to use to represent your devices.

$ sudo editor /etc/nagios3/conf.d/extinfo_nagios2.cfg

Here is what an entry for your hosts looks like:

define hostextinfo {
  hostgroup_name  master-servers
  notes           Ubuntu GNU/Linux servers
  icon_image      base/ubuntu.png
  icon_image_alt  Ubuntu GNU/Linux
  vrml_image      ubuntu.png
  statusmap_image base/ubuntu.gd2
}

Note how we can simply use "hostgroup_name master-servers" as this has already been defined in the file hostgroups_nagios2.cfg. This makes configuring multiple, like items much simpler.

... Make sure the hostgroup_name is the same as the one you picked for the hostgroup for all master servers (previous lab!)