yum安装:
#yum install httpd
#yum install mysql mysql-server mysql-devel openssl-devel perl-DBD-MySQL
#yum install php php-mysql php-gd
部分软件包安装
安装 PHP附属包:
#yum install php-pear php-snmp php-common php-ldap php-xml php-gd php-mbstring
安装PERl包:
#yum install perl-DBI perl-Config-IniFiles perl-Crypt-DES perl-Digest-HMAC perl-Digest-SHA1 perl-GD perl-IO-Socket-INET6 perl-Net-SNMP perl-rrdtool perl-Socket6 perl-Config-IniFiles
安装GD Modules:
#yum install gd gd-devel
安装其余软件包:
#yum install libpng-devel dmidecode lm_sensors libpng zlib freetype cairo pango libxml2 fontconfig glib fping graphviz gcc-c++ glib2-devel
安装PEAR模块:
因为之前已经安装过php-pear包,pear的主目录已经产生,但是Centreon还需要加载一些pear模块才能工作。
#pear install Archive_Tar Auth_SASL Console_Getopt Date DB DB_DataObject DB_DataObject_FormBuilder HTML_Common HTML_QuickForm_advmultiselect HTML_QuickForm_ElementGrid HTML_Table HTML_QuickForm HTTP HTTP_RequestImage_Canvas Image_Color Image_Graph Image_GraphViz Log Mail Mail_Mime Math_BigInteger MDB2 Net_DIME Net_IDNA Net_Ping Net_SMTP Net_Socket Net_Traceroute Net_URL Numbers_Roman Numbers_Words SOAP Structures_Graph Validate XML_RPC
#pear list ------ 查看安装了哪些模块
安装SNMP:
#yum install net-snmp net-snmp-utils net-snmp-devel net-snmp-perl
配置SNMP:
#vim /etc/snmp/snmpd.conf 将x.x.x.x换成运行nagios服务器的IP地址:
com2sec notConfigUser x.x.x.x public
access notConfigGroup”” any noauth exact all none none
view all include .1 80
Nagios安装
通过yum 安装:
yum install nagios nagios-devel nagios-plugins nagios-nrpe nagios-plugins-nrpe
---------------------------------------------------------------------------------------------------
安装完的插件都在/usr/local/nagios/libexec下,以后centreon插件也会在这个目录下。
#出现这个画面表示nagios安装成功
#执行service nagios start操作可以看到nagio监控的本机的状态
详细文档:
http://documentation.centreon.com/docs/centreon/en/latest/installation/from_sources.html
=====================yum 安装===================
yum install nagios-plugins nagios-plugins-nrpe nagios-devel nagios-nrpe nagios
下载ndoutils 的rpm 包
yum install postgresql
rpm -ivh ndoutils-1.4-0.beta7.3.el5.rf.i386.rpm
Centreon安装
#tar -zxf centreon-2.1.9.tar.gz
#cd centreon-2.1.9
#./install.sh -i
#每一步都要看好要安装的东西以及目录,安装目录默认的就选默认就好了,有的需要自己指定目录:RRDs,PEAR.php,ndomod.o
#find / -name RRDs.pm
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/RRDs.pm
#find / -name PEAR.php
/usr/share/pear/PEAR.php
#find / -name ndomod.o
/usr/local/nagios/bin/ndomod.o
# ./install.sh –i
Centreon安装完成后,你可以通过http://yourServerIPAddress/centreon来访问。
C、配置cgi.cfg
D、应用更改