剖析开源监控Nagios故障

  

,,,, Nagios是一款功能强大,优秀的开源免费监控系统,主要由Nagios系统核心(Nagios核心)和众多的插件(例如:Nagios插件)组成.Nagios系统核心,包含核心监测引擎和一个基本的web界面;通过Nagios各种插件,实现其强大的监控功能。

,,,, Nagios的部署过程并不是十分的顺利,从最初的版本到目前的nagios-4.0.8版本。虽然部署过程相比之前变得越来越方便,可以说可以摘掉“难够死“的帽子了,但是对于初次部署的同行或者是不熟悉Linux的朋友,可以说安装的过程中还会遇到这样或那样的问题。本文主要介绍Nagios安装过程中可能遇到的问题和解决方法,由于篇幅的限制,本文只能作为您解决问题的参考,可能无法解决您的问题,那就感到十分抱歉。

,,,,本文中使用操作系统和软件版本如下表:

Red Hat Enterprise Linux 6.5 x86_64

libgd-2.1.1.tar Nagios核心。广州

nagios-4.0.8.tar。广州

nagios-plugins-2.0.3.tar Nagios插件。广州Apache和PHP

apr-1.5.1.tar。广州

apr-util-1.5.4.tar。广州

pcre-8.36.tar。广州

httpd-2.4.10.tar。bz2

php-5.6.4.tar获取。广州

<强>

<强> <强> <强>

1 httpdconfigure,,,,,,,,,,,剖析开源监控Nagios故障

apraprrpm-q aprrhel6.5apr 1.3.9configurehttpd - 2.4 - aprapr 1.41.4apr1.5.1 2 aprconfigure

剖析开源监控Nagios故障

CrpmyumLinuxCgccrpmgccyum安装gcc - y gcc 3 httpdconfigure

剖析开源监控Nagios故障

apr-util-1.5.4 4 apr-utilconfigure

剖析开源监控Nagios故障

——with-aprapr with-apr=/usr/地方/aprapr。/configure——prefix=/usr/地方/apr-util——with-apr=/usr/地方/aprhttpdaprapr-util。/configure - | grep 4月5 httpdconfigure

剖析开源监控Nagios故障

pcreRPM-develpcre-develpcre。/配置前缀=/usr/地方/apache——with-apr=/usr/地方/4月——with-apr-util=/usr/地方/apr-util/獁ith-pcre=/usr/地方/pcre 6 pcreconfigure

剖析开源监控Nagios故障

c++ rpmyumLinuxC + + gcc-c + +百胜installgcc-c + + - y gcc-c + +

<强>

1) LinuxA B B

2) configuremakemake installconfigure Makefilemakemake安装Linux

3)

<强> <强> <强> <强>

1 nagioshttp://IP/nagiosNagiosCore未运行

剖析开源监控Nagios故障

Nagios Corenagiosps ef | grep Nagios

剖析开源监控Nagios故障

nagiosApacheApacheCGI/Nagios/目录/statusjson.cgi吗?查询=programstatusCGICGI

1 apache

#,rm  -rf /usr/地方/apache   #,tar  -zxf  httpd-2.4.10.tar.gz   #,cd  httpd-2.4.10   #,。/configure ——prefix=/usr/地方/apache ——with-apr=/usr/地方/4月——with-apr-util=/usr/地方/apr-util ——with-pcre=/usr/地方/pcre ,——enable-cgi ——enable-so ——enable-rewrite   #,make ,,, make  php安装

2

#,tar  -zxf  php-5.6.4.tar.gz   #,cd  php-5.6.4   #,。/configure ——prefix=/usr/地方/php——with-apxs2=/usr/地方/apache/bin/apx型   #,make ,,, make  apache安装 3

1 apachenagiosapache/usr/地方/输入/conf/httpd。参看

 User  nagios
  Group  nagcmd apacheindex 

2。php

 AddType 应用程序/x-httpd-php 。php 

Include  conf.d/*。参看

剖析开源监控Nagios故障