编译Nagios程序
创始人
2024-07-24 07:21:10
0

编译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服务器的自我监控实现

 

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...