1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
5
<title>Configuration Overview</title>
7
<STYLE type="text/css">
9
.Default { font-family: verdana,arial,serif; font-size: 8pt; }
10
.PageTitle { font-family: verdana,arial,serif; font-size: 16pt; font-weight: bold; }
16
<body bgcolor="#FFFFFF" text="black" class="Default">
19
<img src="images/nagios.jpg" border="0" alt="Nagios" title="Nagios">
20
<h1 class="PageTitle">Configuration Overview</h1>
26
<img src="images/upto.gif" border="0" align="middle" alt="Up To" title="Up To">Up To: <a href="toc.html">Contents</a><br>
27
<img src="images/seealso.gif" border="0" align="middle" alt="See Also" title="See Also"> See Also: <a href="configmain.html">Main Configuration File</a>, <a href="configobject.html">Object Configuration Overview</a>, <a href="configcgi.html">CGI Configuration File</a>
31
<strong><u>Introduction</u></strong>
35
There are several different configuration files that you're going to need to create or edit before you start monitoring anything. Be patient! Configuring Nagios can take quite a while, especially if you're first-time user. Once you figure out how things work, it'll all be well worth your time. :-)
39
<img src="images/note.gif" border="0" align="bottom" alt="Note" title="Note"> Note: Sample configuration files are installed in the <i>/usr/local/nagios/etc/</i> directory when you follow the <a href="quickstart.html">quickstart installation guide</a>.
42
<img src="images/configoverview.png" border="0" style="float: right" alt="Config Overview" title="Config Overview">
45
<strong><u>Main Configuration File</u></strong>
49
The main configuration file contains a number of directives that affect how the Nagios daemon operates. This config file is read by both the Nagios daemon and the CGIs. This is where you're going to want to get started in your configuration adventures.
53
Documentation for the main configuration file can be found <a href="configmain.html">here</a>.
57
<strong><u>Resource File(s)</u></strong>
61
Resource files can be used to store user-defined macros. The main point of having resource files is to use them to store sensitive configuration information (like passwords), without making them available to the CGIs.
65
You can specify one or more optional resource files by using the <a href="configmain.html#resource_file">resource_file</a> directive in your main configuration file.
69
<strong><u>Object Definition Files</u></strong>
73
Object definition files are used to define hosts, services, hostgroups, contacts, contactgroups, commands, etc. This is where you define all the things you want monitor and how you want to monitor them.
77
You can specify one or more object definition files by using the <a href="configmain.html#cfg_file">cfg_file</a> and/or <a href="configmain.html#cfg_dir">cfg_dir</a> directives in your main configuration file.
81
An introduction to object definitions, and how they relate to each other, can be found <a href="configobject.html">here</a>.
85
<strong><u>CGI Configuration File</u></strong>
89
The CGI configuration file contains a number of directives that affect the operation of the <a href="cgis.html">CGIs</a>. It also contains a reference the main configuration file, so the CGIs know how you've configured Nagios and where your object defintions are stored.
93
Documentation for the CGI configuration file can be found <a href="configcgi.html">here</a>.
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
9
<title>Configuration Overview</title>
13
<STYLE type="text/css">
17
.Default { font-family: verdana,arial,serif; font-size: 8pt; }
19
.PageTitle { font-family: verdana,arial,serif; font-size: 16pt; font-weight: bold; }
31
<body bgcolor="#FFFFFF" text="black" class="Default">
37
<img src="images/nagios.jpg" border="0" alt="Nagios" title="Nagios">
39
<h1 class="PageTitle">Configuration Overview</h1>
51
<img src="images/upto.gif" border="0" align="middle" alt="Up To" title="Up To">Up To: <a href="toc.html">Contents</a><br>
53
<img src="images/seealso.gif" border="0" align="middle" alt="See Also" title="See Also"> See Also: <a href="configmain.html">Main Configuration File</a>, <a href="configobject.html">Object Configuration Overview</a>, <a href="configcgi.html">CGI Configuration File</a>
61
<strong><u>Introduction</u></strong>
69
There are several different configuration files that you're going to need to create or edit before you start monitoring anything. Be patient! Configuring Nagios can take quite a while, especially if you're first-time user. Once you figure out how things work, it'll all be well worth your time. :-)
77
<img src="images/note.gif" border="0" align="bottom" alt="Note" title="Note"> Note: Sample configuration files are installed in the <i>/usr/local/nagios/etc/</i> directory when you follow the <a href="quickstart.html">quickstart installation guide</a>.
83
<img src="images/configoverview.png" border="0" style="float: right" alt="Config Overview" title="Config Overview">
89
<strong><u>Main Configuration File</u></strong>
97
The main configuration file contains a number of directives that affect how the Nagios daemon operates. This config file is read by both the Nagios daemon and the CGIs. This is where you're going to want to get started in your configuration adventures.
105
Documentation for the main configuration file can be found <a href="configmain.html">here</a>.
113
<strong><u>Resource File(s)</u></strong>
121
Resource files can be used to store user-defined macros. The main point of having resource files is to use them to store sensitive configuration information (like passwords), without making them available to the CGIs.
129
You can specify one or more optional resource files by using the <a href="configmain.html#resource_file">resource_file</a> directive in your main configuration file.
137
<strong><u>Object Definition Files</u></strong>
145
Object definition files are used to define hosts, services, hostgroups, contacts, contactgroups, commands, etc. This is where you define all the things you want monitor and how you want to monitor them.
153
You can specify one or more object definition files by using the <a href="configmain.html#cfg_file">cfg_file</a> and/or <a href="configmain.html#cfg_dir">cfg_dir</a> directives in your main configuration file.
161
An introduction to object definitions, and how they relate to each other, can be found <a href="configobject.html">here</a>.
169
<strong><u>CGI Configuration File</u></strong>
177
The CGI configuration file contains a number of directives that affect the operation of the <a href="cgis.html">CGIs</a>. It also contains a reference the main configuration file, so the CGIs know how you've configured Nagios and where your object defintions are stored.
185
Documentation for the CGI configuration file can be found <a href="configcgi.html">here</a>.