OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

2.2. Configuration Overview


There are a couple of directories containing Nagios configuration and check files.

/etc/nagios3: contains configuration files for the operation of the nagios daemon, CGI files, hosts, etc.

/etc/nagios-plugins: houses configuration files for the service checks.

/etc/nagios: on the remote host contains the nagios-nrpe-server configuration files.

/usr/lib/nagios/plugins/: where the check binaries are stored. To see the options of a check use the -h

option.


For example: /usr/lib/nagios/plugins/check_dhcp -h


There are a plethora of checks Nagios can be configured to execute for any given host. For this example Nagios will be configured to check disk space, DNS, and a MySQL hostgroup. The DNS check will be on server02, and the MySQL hostgroup will include both server01 and server02.


image

See Section 1, “HTTPD - Apache2 Web Server” [p. 214] for details on setting up Apache, Chapter 8, Domain Name Service (DNS) [p. 166] for DNS, and Section 1, “MySQL” [p. 233] for MySQL.


Additionally, there are some terms that once explained will hopefully make understanding Nagios configuration easier:

Host: a server, workstation, network device, etc that is being monitored.

Host Group: a group of similar hosts. For example, you could group all web servers, file server, etc.

Service: the service being monitored on the host. Such as HTTP, DNS, NFS, etc.

Service Group: allows you to group multiple services together. This is useful for grouping multiple HTTP for example.

Contact: person to be notified when an event takes place. Nagios can be configured to send emails, SMS messages, etc.


By default Nagios is configured to check HTTP, disk space, SSH, current users, processes, and load on the

localhost. Nagios will also ping check the gateway.


Large Nagios installations can be quite complex to configure. It is usually best to start small, one or two hosts, get things configured the way you like then expand.


Top OS Cloud Computing at OnWorks: