Compile NagiosThe procedure is as follows:
Compile the main Nagios Program
[Root @ KCentOS5C nagios-2.9] # make all
The Nagios main program will return information after compilation is successful.
-----------------------------------------------------
* ** Compile finished ***
If the main program and CGIs compiled without any errors, you
Can continue with installing Nagios as follows (type 'make'
Without any arguments for a list of all possible options ):
If no errors occur during compilation, follow these commands to continue the operation.
Make install
-This INSTALLThe main program, CGIs, and HTML files
Run the "make install" command to install the main program, CGI, and HTML web pages.
Make install-init
-This INSTALLThe init script in/etc/rc. d/init. d
Run the "install-init" command to install the startup script in the/etc/rc. d/init. d/directory.
Make install-commandmode
-This installand configures permissions on
Directory for holding the external command file
Run the "install-commandmode" command to install and configure the permissions of External commands on the main path of Nagios. (Here, the so-called external commands mainly refer to the operations performed by the Apache service on Nagios through CGI. You can read and call the Nagios detection results by executing CGI scripts on the Web .)
Make install-config
-This install* SAMPLE * config files in/usr/local/nagios/etc
You'll have to modify these sample files before you can
Use Nagios. Read the HTML documentation for more info
On doing this. Pay maid to the docs on
Object configuration files, as they determine what/how
Things get monitored!
Run the "make install-config" command to install the sample configuration template in the main configuration path of/usr/local/etc/Nagios compilation and installation, this will be of great help for subsequent configuration setup.
* ** Support Notes *********************************** ********
These support information will not be detailed.
If you have questions about running ing or running Nagios,
Please make sure that you:
-Look at the sample config files
-Read the HTML documentation
-Read the FAQs online
Http://www.nagios.org/faqs
Before you post a question to one of the mailing lists.
Also make sure to include pertinent information that cocould
Help others help you. This might include:
-What version of Nagios you are using
-What version of the plugins you are using
-Relevant snippets from your config files
-Relevant error messages from the Nagios log file
For more information on obtaining support for Nagios, visit:
Through the strong description in the article, we finally understand the entire process of compiling the Nagios program! Hope you like it!
- Nagios service configuration
- Install and configure Nagios in CentOS
- Use nagios to monitor oracle 10g
- Nagios skills you should know
- Nagios monitoring system under Solaris
- Self-monitoring implementation of Nagios Server