Configuring Nagios
Nagios stores it's configuration in a separate directory. Usually it's either in /etc/nagios
or /usr/local/etc/nagios
. If you followed the steps for manual installation, it's in /etc/nagios
. We will now configure Nagios so that it is ready for use. While it will not be easy to check the results right away, we will verify that the configuration itself is valid. Chapter 3, Using the Nagios Web Interface, talks about setting up the Nagios web interface, which will allow us to check the status of the host and services that we will create in this section.
Creating the main configuration file
The main configuration file is called nagios.cfg
,
and it is the main file that is loaded during Nagios startup. Its syntax is simple, a line ...
Get Learning Nagios 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.