编译Nagios程序


编译Nagios程序的过程如下:

编译Nagios主程序

[root@KCentOS5C nagios-2.9]# make all

Nagios主程序编译成功后将返回信息

-----------------------------------------------------

*** 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):

如果在编译当中没有发生错误的话,那么可以照以下这些命令继续操作。

make install

- This installs the main program, CGIs, and HTML files

执行“make install”命令来对主程序,CGI以及HTML网页进行安装。

make install-init

- This installs the init script in /etc/rc.d/init.d

执行“install-init”命令来在/etc/rc.d/init.d/目录中安装启动脚本。

make install-commandmode

- This installs and configures permissions on the

directory for holding the external command file

执行“install-commandmode”命令来安装和配置外部命令对Nagios主路径操作的权限。(这里所谓的外部命令主要是指Apache服务通过CGI来对Nagios的进行的操作。用户将通过Web以执行CGI程序脚本的方式来对Nagios的检测结果进行读取和调用。)

make install-config

- This installs *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 particular attention to the docs on

object configuration files, as they determine what/how

things get monitored!

执行“make install-config”命令将会在/usr/local/etc/这个Nagios编译安装的主配置路径下安装示例配置模板,这将对于之后的配置制定帮助很大。

*** Support Notes *******************************************

这些关于支持的信息就不再详细讲了

If you have questions about configuring or running Nagios,

please make sure that you:

- Look at the sample config files

- Read the HTML documentation

- Read the FAQs online at

http://www.nagios.org/faqs

before you post a question to one of the mailing lists.

Also make sure to include pertinent information that could

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:

通过文章的强力描述,我们终于明白了编译Nagios程序的全过程!希望大家喜欢!

  • nagios服务配置
  • CentOS环境Nagios的安装与配置
  • 使用nagios监控oracle 10g
  • 你应该知道的Nagios技巧
  • Solaris下的nagios监控系统
  • Nagios服务器的自我监控实现

相关内容

    暂无相关文章