编译Nagios程序

运维 系统运维
Nagios是一个可运行在Linux/Unix平台之上的监视系统,Nagios可以用来监视系统运行状态和网络信息。Nagios可以监视所指定的本地或远程主机以及服务,同时提供异常通知功能。我们来看看如何编译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程序的全过程!希望大家喜欢!

【编辑推荐】

 

责任编辑:赵鹏 来源: 网络转载
相关推荐

2011-03-25 17:20:37

NagiosApache

2011-03-22 13:28:00

Nagios安装

2011-03-23 10:17:24

2011-03-25 12:50:29

nagios安装

2011-03-22 14:16:17

Nagios安装

2011-03-21 15:35:01

Nagiosnagios-plug安装

2011-03-31 16:05:18

Redhat配置nagios

2011-08-22 12:25:02

nagios

2009-07-09 10:05:55

2011-05-31 14:38:04

Android 反编译

2022-05-18 07:58:21

Linux程序编译代码

2011-03-23 13:44:23

配置Nagios系统

2011-03-21 11:14:22

LinuxNagios

2011-03-28 15:37:53

nagios作用

2011-03-23 14:43:10

Nagiosnagios.cfg

2011-03-23 13:32:14

配置Nagios系统

2010-05-31 12:22:13

Nagios pnp

2011-03-31 16:05:18

Redhat配置nagios

2010-05-31 11:10:37

Nagios pnp

2021-01-19 11:40:40

Linux代码程序编译
点赞
收藏

51CTO技术栈公众号