Centreon 安装日志
---添加rpmforge的yum源,并更新系统# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm# yum update============================================================================================================================================================= Package Arch Version Repository Size=============================================================================================================================================================Installing: kernel i686 2.6.18-194.32.1.el5 updates 17 M
Transaction Summary=============================================================================================================================================================Install 1 Package(s)Upgrade 0 Package(s)
Total download size: 17 M
---安装旧版软件包# yum groupinstall -y"Legacy Software Development""Legacy Software Support"
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: compat-gcc-34 i386 3.4.6-4 base 4.1 M compat-gcc-34-c++ i386 3.4.6-4 base 11 M compat-gcc-34-g77 i386 3.4.6-4 base 2.1 M compat-glibc i386 1:2.3.4-2.26 base 1.0 M compat-libgcc-296 i386 2.96-138 base 51 k compat-libstdc++-296 i386 2.96-138 base 90 k compat-libstdc++-33 i386 3.2.3-61 base 232 kInstalling for dependencies: compat-glibc-headers i386 1:2.3.4-2.26 base 485 k compat-libf2c-34 i386 3.4.6-4 base 52 k glibc-devel i386 2.5-49.el5_5.7 updates 2.0 M glibc-headers i386 2.5-49.el5_5.7 updates 602 k kernel-headers i386 2.6.18-194.26.1.el5 updates 1.1 M
Transaction Summary==========================================================================================================================================Install 12 Package(s)Upgrade 0 Package(s)
Total download size: 23 M
---安装 Apache2 # yum install -y httpd httpd-manual httpd-devel
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: httpd-devel i386 2.2.3-43.el5.centos.3 updates 149 kInstalling for dependencies: apr-devel i386 1.2.7-11.el5_5.3 updates 232 k apr-util-devel i386 1.2.7-11.el5_5.2 updates 53 k cyrus-sasl-devel i386 2.1.22-5.el5_4.3 base 1.4 M db4-devel i386 4.3.29-10.el5_5.2 updates 1.9 M expat-devel i386 1.95.8-8.3.el5_5.3 updates 132 k gcc i386 4.1.2-48.el5 base 5.2 M libgomp i386 4.4.0-6.el5 base 70 k openldap-devel i386 2.3.43-12.el5_5.3 updates 1.5 M
Transaction Summary==========================================================================================================================================Install 9 Package(s)Upgrade 0 Package(s)
Total download size: 11 M
---安装 GD modules # yum install -y gd gd-devel perl-GD
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: gd-devel i386 2.0.33-9.4.el5_4.2 base 97 k perl-GD i386 2.44-1.el5.rf rpmforge 224 kInstalling for dependencies: fontconfig-devel i386 2.4.1-7.el5 base 168 k freetype-devel i386 2.2.1-28.el5_5.1 updates 148 k libX11-devel i386 1.0.3-11.el5 base 661 k libXau-devel i386 1.0.1-3.1 base 11 k libXdmcp-devel i386 1.0.1-2.1 base 7.5 k libXpm-devel i386 3.5.5-3 base 31 k libjpeg-devel i386 6b-37 base 105 k libpng-devel i386 2:1.2.10-7.1.el5_5.3 updates 181 k mesa-libGL-devel i386 6.5.1-7.8.el5 base 461 k xorg-x11-proto-devel i386 7.1-13.el5 base 247 k zlib-devel i386 1.2.3-3 base 101 k
Transaction Summary==========================================================================================================================================Install 13 Package(s)Upgrade 0 Package(s)
Total download size: 2.4 M
---安装 MySQL# yum install -y mysql-server mysql-devel
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: mysql-devel i386 5.0.77-4.el5_5.4 updates 2.4 M mysql-server i386 5.0.77-4.el5_5.4 updates 9.8 MInstalling for dependencies: e2fsprogs-devel i386 1.39-23.el5_5.1 updates 569 k keyutils-libs-devel i386 1.2-1.el5 base 27 k krb5-devel i386 1.6.1-36.el5_5.6 updates 1.8 M libselinux-devel i386 1.33.4-5.5.el5 base 143 k libsepol-devel i386 1.15.2-3.el5 base 187 k openssl-devel i386 0.9.8e-12.el5_5.7 updates 1.9 M perl-DBD-MySQL i386 3.0007-2.el5 base 148 k
Transaction Summary==========================================================================================================================================Install 9 Package(s)Upgrade 0 Package(s)
Total download size: 17 M
---安装 PHP# yum install -y php php-mysql php-gd php-pear
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: php-gd i386 5.1.6-27.el5_5.3 updates 117 k php-mysql i386 5.1.6-27.el5_5.3 updates 86 k php-pear noarch 1:1.4.9-6.el5 base 344 kInstalling for dependencies: autoconf noarch 2.59-12 base 647 k automake noarch 1.9.6-2.3.el5 base 476 k imake i386 1.0.2-3 base 319 k php-devel i386 5.1.6-27.el5_5.3 updates 503 k php-pdo i386 5.1.6-27.el5_5.3 updates 65 k
Transaction Summary==========================================================================================================================================Install 8 Package(s)Upgrade 0 Package(s)
Total download size: 2.5 M
# yum install -y php-ldap php-xml php-mbstring
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: php-mbstring i386 5.1.6-27.el5_5.3 updates 995 k php-xml i386 5.1.6-27.el5_5.3 updates 97 k
Transaction Summary==========================================================================================================================================Install 2 Package(s)Upgrade 0 Package(s)
Total download size: 1.1 M
---安装 DBI modules # yum install -y perl-DBI
Package perl-DBI-1.52-2.el5.i386 already installed and latest versionNothing to do
---安装 SNMP# yum install -y perl-Digest-SHA1 perl-Digest-HMAC net-snmp-utils perl-Socket6 perl-IO-Socket-INET6 net-snmp-devel php-snmp dmidecode net-snmp-perl perl-Crypt-DES
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: net-snmp-devel i386 1:5.3.2.2-9.el5_5.1 updates 1.9 M net-snmp-perl i386 1:5.3.2.2-9.el5_5.1 updates 198 k net-snmp-utils i386 1:5.3.2.2-9.el5_5.1 updates 186 k perl-Crypt-DES i386 2.05-3.2.el5.rf rpmforge 37 k php-snmp i386 5.1.6-27.el5_5.3 updates 30 kInstalling for dependencies: beecrypt i386 4.1.2-10.1.1 base 116 k beecrypt-devel i386 4.1.2-10.1.1 base 160 k elfutils-devel i386 0.137-3.el5 base 61 k elfutils-devel-static i386 0.137-3.el5 base 122 k elfutils-libelf-devel i386 0.137-3.el5 base 24 k elfutils-libelf-devel-static i386 0.137-3.el5 base 66 k elfutils-libs i386 0.137-3.el5 base 193 k lm_sensors i386 2.10.7-9.el5 base 511 k lm_sensors-devel i386 2.10.7-9.el5 base 77 k net-snmp i386 1:5.3.2.2-9.el5_5.1 updates 697 k net-snmp-libs i386 1:5.3.2.2-9.el5_5.1 updates 1.3 M nspr-devel i386 4.8.6-1.el5_5 updates 112 k nss-devel i386 3.12.8-1.el5.centos updates 233 k rpm-devel i386 4.4.2.3-20.el5_5.1 updates 1.2 M sqlite-devel i386 3.3.6-5 base 257 k
Transaction Summary==========================================================================================================================================Install 20 Package(s)Upgrade 0 Package(s)
Total download size: 7.4 M
# yum install -y perl-Net-SNMP
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: perl-Net-SNMP noarch 5.2.0-1.2.el5.rf rpmforge 96 k
Transaction Summary==========================================================================================================================================Install 1 Package(s)Upgrade 0 Package(s)
Total download size: 96 k
---安装 RRDtool
# yum install -y rrdtool perl-rrdtool rrdtool-devel ruby-rrdtool tcl-rrdtool
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: perl-rrdtool i386 1.4.4-1.el5.rf rpmforge 52 k rrdtool i386 1.4.4-1.el5.rf rpmforge 895 k rrdtool-devel i386 1.4.4-1.el5.rf rpmforge 292 k ruby-rrdtool i386 1.4.4-1.el5.rf rpmforge 15 k tcl-rrdtool i386 1.4.4-1.el5.rf rpmforge 36 kInstalling for dependencies: libdbi i386 0.8.1-2.1 base 35 k lua i386 5.1.4-2.el5.rf rpmforge 242 k ruby i386 1.8.5-5.el5_4.8 base 274 k ruby-devel i386 1.8.5-5.el5_4.8 base 556 k ruby-libs i386 1.8.5-5.el5_4.8 base 1.6 M
Transaction Summary==========================================================================================================================================Install 10 Package(s)Upgrade 0 Package(s)
Total download size: 4.0 M
---安装其他软件包
# yum install -y fping perl-Config-IniFiles graphviz gcc-c++ glib2-devel cpp libstdc++
========================================================================================================================================== Package Arch Version Repository Size==========================================================================================================================================Installing: fping i386 2.4-1.b2.3.el5.rf rpmforge 40 k gcc-c++ i386 4.1.2-48.el5 base 3.4 M glib2-devel i386 2.12.3-4.el5_3.1 base 1.2 M graphviz i386 2.22.0-4.el5.rf rpmforge 2.5 M perl-Config-IniFiles noarch 2.56-1.el5.rf rpmforge 36 kInstalling for dependencies: libstdc++-devel i386 4.1.2-48.el5 base 2.8 M
Transaction Summary==========================================================================================================================================Install 6 Package(s)Upgrade 0 Package(s)
Total download size: 10 M
---配置php-PEAR
# wget http://download.pear.php.net/package/Structures_Graph-1.0.4.tgz# tar zxf Structures_Graph-1.0.4.tgz # cp -R Structures_Graph-1.0.4/Structures /usr/share/pear/
# pear install --force PEAR-1.9.1# pear channel-update pear.php.netRetrieving channel.xml from remote serverUpdate of Channel "pear.php.net" succeeded
# pear upgrade-all
---设置Apache、MySQL和SNMP在系统启动时自启动
# chkconfig --level 345 httpd on # chkconfig --level 345 mysqld on# chkconfig --level 345 snmpd on
# service mysqld start# /usr/bin/mysqladmin -u root password 'nagios'
---配置snmp
# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak# vi /etc/snmp/snmpd.conf
# cat /etc/snmp/snmpd.conf|grep -v '^#'|sed /^$/dcom2sec notConfigUser127.0.0.1 publicgroup notConfigGroup v1 notConfigUsergroup notConfigGroup v2c notConfigUserview systemview included .1.3.6.1.2.1.1view systemview included .1.3.6.1.2.1.25.1.1accessnotConfigGroup "" any noauth exactall none noneview all included.1 80syslocation Unknown (edit /etc/snmp/snmpd.conf)syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
---安装 Nagios
# yum install -y nagios nagios-devel nagios-plugins nagios-plugins-setuid
============================================================================================================================================================= Package Arch Version Repository Size=============================================================================================================================================================Reinstalling: nagios i386 3.2.3-3.el5.rf rpmforge 3.7 M nagios-devel i386 3.2.3-3.el5.rf rpmforge 42 k nagios-plugins i386 1.4.15-2.el5.rf rpmforge 1.6 M nagios-plugins-setuid i386 1.4.15-2.el5.rf rpmforge 122 k
Transaction Summary=============================================================================================================================================================Remove 0 Package(s)Reinstall 4 Package(s)Downgrade 0 Package(s)
Total download size: 5.5 M
---配置Nagios登录用户
# htpasswd -c /etc/nagios/htpasswd.users nagiosadmin---nagios
---登录web界面,检查Nagios是否成功运行
# service httpd start# service nagios start
---安装Ndoutils
# wget http://sourceforge.net/projects/nagios/files/ndoutils-1.x/ndoutils-1.4b9/ndoutils-1.4b9.tar.gz# tar -zxf ndoutils-1.4b9.tar.gz# cd ndoutils-1.4b9# wget http://svn.centreon.com/trunk/ndoutils-patch/ndoutils1.4b9_light.patch# patch -p1 -N < ndoutils1.4b9_light.patch# ./configure --prefix=/usr/lib/nagios --enable-mysql --disable-pgsql --with-ndo2db-user=nagios --with-ndo2db-group=nagios# make# cp config/ndomod.cfg-sample /etc/nagios/ndomod.cfg# cp config/ndo2db.cfg-sample /etc/nagios/ndo2db.cfg# mkdir -p /usr/lib/nagios/bin# cp src/ndomod-3x.o /usr/lib/nagios/bin/ndomod.o# cp src/ndo2db-3x /usr/lib/nagios/bin/ndo2db# cp src/log2ndo /usr/lib/nagios/bin/log2ndo# cp src/sockdebug /usr/lib/nagios/bin/sockdebug# cp src/file2sock /usr/lib/nagios/bin/file2sock
# vi /etc/nagios/nagios.cfg
# vi /etc/nagios/ndomod.cfg
# vi /etc/nagios/ndo2db.cfg
# touch /var/nagios/ndomod.tmp# chown nagios.nagios /var/nagios/ndomod.tmp
# mkdir -p /var/nagios/log/# touch /var/nagios/log/ndo2db.debug# chown nagios.nagios /var/nagios/log/ndo2db.debug
# mkdir -p /usr/lib/nagios/var# touch /usr/lib/nagios/var/ndo2db.lock# chown nagios.nagios /usr/lib/nagios/var/ndo2db.lock
---设置NDO2DB
# wget http://download.centreon.com/centreon/centreon-2.1.10.tar.gz# tar zxf centreon-2.1.10.tar.gz# cd centreon-2.1.10
# mysql -u root -pmysql> CREATE DATABASE `nagios` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
# mysql -u root -p nagios < ./www/install/createNDODB.sql# mysql -u root -pmysql> GRANT all ON `nagios` . * TO 'ndouser'@'localhost' IDENTIFIED BY 'ndopassword';mysql> flush privileges;
---设置NDO2DB服务
# vi /etc/init.d/ndo2db
# touch /var/log/nagios/nagios.debug# chown nagios.nagios /var/log/nagios/nagios.debug
# chmod 755 /etc/init.d/ndo2db# chkconfig --level 345 ndo2db on# mv /etc/rc3.d/S99ndo2db /etc/rc3.d/S97ndo2db# mv /etc/rc5.d/S99ndo2db /etc/rc5.d/S97ndo2db
# service nagios stop# service ndo2db start# service nagios start
# tail -f /var/log/nagios/nagios.log Event broker module '/usr/lib/nagios/bin/ndomod.o' deinitialized successfully. Nagios 3.2.3 starting... (PID=28618) Local time is Thu Jan 06 07:10:12 CST 2011 LOG VERSION: 2.0 ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors ndomod: Successfully connected to data sink.0 queued items to flush. Event broker module '/usr/lib/nagios/bin/ndomod.o' initialized successfully. Finished daemonizing... (New PID=28621)
---安装Centreon
# visudo# Defaults requiretty
# ./install.sh -i> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pm> /usr/share/pear/PEAR.php> /usr/lib/nagios> /etc/nagios> /var/nagios> /usr/lib/nagios/plugins> /usr/share/nagios/images/logos> /usr/lib/nagios/bin/ndomod.o
# find . -name RRDs.pm./usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pm# find . -name PEAR.php./usr/share/pear/PEAR.php# find . -name ndomod.o./usr/lib/nagios/bin/ndomod.o
# touch /var/www/html/index.html# chown nagios.apache /etc/nagios
Root password for Mysql:nagiosCentreon Database Name:centreonCentstorage Database Name:centstorageNDO Database Name:centstatusDatabase Password:centreonpwd
Administrator login for Centreon:adminAdministrator password:centreon
/usr/lib/nagios/plugins/check_nagios /var/nagios/status.dat 5 '/usr/bin/nagios'
# chmod 6755 /etc/nagios# chown apache:apache /etc/nagios# chmod 644 /etc/nagios/*.cfg# chown apache:apache /etc/nagios/*.cfg# chown nagios:apache /usr/bin/nagios# chmod 750 /usr/bin/nagios# chmod +x /usr/bin/nagios# chown nagios:apache /var/nagios/rw/# chmod 660 /var/nagios/rw
# vi /etc/centreon/instCentStorage.conf RRD_PERL=/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pm
# vi /etc/centreon/instCentWeb.conf
RRD_PERL=/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pm
# vi /etc/centreon/instCentPlugins.conf
RRD_PERL=/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pm
# service ndo2db stop# service nagios stop# service httpd stop# service mysqld stop# service mysqld start# service ndo2db start# service httpd start# service nagios start
---汉化
# vi /etc/sysconfig/i18nLANG="zh_CN"
# mkdir -p /usr/local/centreon/www/locale/zh_CN/LC_MESSAGES/# wget http://cacti-nagios.googlecode.com/files/messages.mo# cp messages.mo /usr/local/centreon/www/locale/zh_CN/LC_MESSAGES/# chown -R apache.apache /usr/local/centreon/www
参考文档:
http://blog.iyunv.com/u3/93504/article_106286.htmlhttp://code.google.com/p/cacti-nagios/issues/detail?id=2
# yum -y install subversion
============================================================================================================================================================= Package Arch Version Repository Size=============================================================================================================================================================Installing: subversion i386 1.4.2-4.el5_3.1 base 2.3 M
Transaction Summary=============================================================================================================================================================Install 1 Package(s)Upgrade 0 Package(s)
Total download size: 2.3 M
# svn checkout http://svn.centreon.com/trunk/centreon/
# netstat -tlActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:5668 *:* LISTEN tcp 0 0 *:entrust-aams *:* LISTEN tcp 0 0 *:mysql *:* LISTEN tcp 0 0 *:sunrpc *:* LISTEN tcp 0 0 localhost.localdomain:ipp *:* LISTEN tcp 0 0 localhost.localdomain:smtp*:* LISTEN tcp 0 0 *:http *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 *:https *:* LISTEN
# cat /etc/nagios/nagios.cfg|grep -v '^#'|sed /^$/dlog_file=/var/log/nagios/nagios.logcfg_file=/etc/nagios/objects/commands.cfgcfg_file=/etc/nagios/objects/contacts.cfgcfg_file=/etc/nagios/objects/timeperiods.cfgcfg_file=/etc/nagios/objects/templates.cfgcfg_file=/etc/nagios/objects/localhost.cfgobject_cache_file=/var/nagios/objects.cacheprecached_object_file=/var/nagios/objects.precacheresource_file=/etc/nagios/resource.cfgstatus_file=/var/nagios/status.datstatus_update_interval=10nagios_user=nagiosnagios_group=nagioscheck_external_commands=1command_check_interval=-1command_file=/var/nagios/rw/nagios.cmdexternal_command_buffer_slots=4096lock_file=/var/nagios/nagios.pidtemp_file=/var/nagios/nagios.tmptemp_path=/tmpevent_broker_options=-1broker_module=/usr/lib/nagios/bin/ndomod.o config_file=/etc/nagios/ndomod.cfglog_rotation_method=dlog_archive_path=/var/log/nagios/archivesuse_syslog=1log_notifications=1log_service_retries=1log_host_retries=1log_event_handlers=1log_initial_states=0log_external_commands=1log_passive_checks=1service_inter_check_delay_method=smax_service_check_spread=30service_interleave_factor=shost_inter_check_delay_method=smax_host_check_spread=30max_concurrent_checks=0check_result_reaper_frequency=10max_check_result_reaper_time=30check_result_path=/var/nagios/spool/checkresultsmax_check_result_file_age=3600cached_host_check_horizon=15cached_service_check_horizon=15enable_predictive_host_dependency_checks=1enable_predictive_service_dependency_checks=1soft_state_dependencies=0auto_reschedule_checks=0auto_rescheduling_interval=30auto_rescheduling_window=180sleep_time=0.25service_check_timeout=60host_check_timeout=30event_handler_timeout=30notification_timeout=30ocsp_timeout=5perfdata_timeout=5retain_state_information=1state_retention_file=/var/nagios/retention.datretention_update_interval=60use_retained_program_state=1use_retained_scheduling_info=1retained_host_attribute_mask=0retained_service_attribute_mask=0retained_process_host_attribute_mask=0retained_process_service_attribute_mask=0retained_contact_host_attribute_mask=0retained_contact_service_attribute_mask=0interval_length=60check_for_updates=1bare_update_check=0use_aggressive_host_checking=0execute_service_checks=1accept_passive_service_checks=1execute_host_checks=1accept_passive_host_checks=1enable_notifications=1enable_event_handlers=1process_performance_data=0obsess_over_services=0obsess_over_hosts=0translate_passive_host_checks=0passive_host_checks_are_soft=0check_for_orphaned_services=1check_for_orphaned_hosts=1check_service_freshness=1service_freshness_check_interval=60check_host_freshness=0host_freshness_check_interval=60additional_freshness_latency=15enable_flap_detection=1low_service_flap_threshold=5.0high_service_flap_threshold=20.0low_host_flap_threshold=5.0high_host_flap_threshold=20.0date_format=usp1_file=/usr/bin/p1.plenable_embedded_perl=1use_embedded_perl_implicitly=1illegal_object_name_chars=`~!$%^&*|'"<>?,()=illegal_macro_output_chars=`~$&|'"<>use_regexp_matching=0use_true_regexp_matching=0admin_email=nagios@localhostadmin_pager=pagenagios@localhostdaemon_dumps_core=0use_large_installation_tweaks=0enable_environment_macros=1debug_level=0debug_verbosity=1debug_file=/var/log/nagios/nagios.debugmax_debug_file_size=1000000
# cat /etc/nagios/ndomod.cfg|grep -v '^#'|sed /^$/dinstance_name=defaultoutput_type=tcpsocketoutput=127.0.0.1tcp_port=5668use_ssl=0output_buffer_items=5000buffer_file=/var/nagios/ndomod.tmpfile_rotation_interval=14400file_rotation_timeout=60reconnect_interval=15reconnect_warning_interval=15data_processing_options=-1config_output_options=2
# cat /etc/nagios/ndo2db.cfg|grep -v '^#'|sed /^$/dlock_file=/usr/lib/nagios/var/ndo2db.lockndo2db_user=nagiosndo2db_group=nagiossocket_type=tcptcp_port=5668use_ssl=0db_servertype=mysqldb_host=localhostdb_port=3306db_name=nagiosdb_prefix=nagios_db_user=ndouserdb_pass=ndopasswordmax_timedevents_age=1440max_systemcommands_age=10080max_servicechecks_age=10080max_hostchecks_age=10080max_eventhandlers_age=44640max_externalcommands_age=44640debug_level=-1debug_verbosity=2debug_file=/var/nagios/log/ndo2db.debugmax_debug_file_size=1000000
# cat /etc/init.d/ndo2db#!/bin/sh### chkconfig: 345 99 01# description: Nagios to mysql## Author : Ga?tan Lucas# Realase : 07/02/08# Version : 0.1 b# File : ndo2db# Description: Starts and stops the Ndo2db daemon# used to provide network services status in a database.#status_ndo (){ if ps -p $NdoPID > /dev/null 2>&1; then return 0 else return 1 fi
return 1}
printstatus_ndo(){ if status_ndo $1 $2; then echo "ndo (pid $NdoPID) is running..." else echo "ndo is not running" fi}
killproc_ndo (){ echo "kill $2 $NdoPID" kill $2 $NdoPID}
pid_ndo (){ if test ! -f $NdoRunFile; then echo "No lock file found in $NdoRunFile" echo -n " checking runing process..." NdoPID=`ps h -C ndo2db -o pid` if [ -z "$NdoPID" ]; then echo " No ndo2db process found" exit 1 else echo " found process pid: $NdoPID" echo -n " reinit $NdoRunFile ..." touch $NdoRunFile chown $NdoUser:$NdoGroup $NdoRunFile echo "$NdoPID" > $NdoRunFile echo " done" fi fi
NdoPID=`head $NdoRunFile`}
# Source function library# Solaris doesn't have an rc.d directory, so do a test firstif [ -f /etc/rc.d/init.d/functions ]; then . /etc/rc.d/init.d/functionselif [ -f /etc/init.d/functions ]; then . /etc/init.d/functionsfi
prefix=/usr/lib/nagiosexec_prefix=${prefix}NdoBin=/usr/lib/nagios/bin/ndo2dbNdoCfgFile=/etc/nagios/ndo2db.cfgNdoRunFile=/var/nagios/ndo2db.runNdoLockDir=/var/lock/subsysNdoLockFile=ndo2db.lockNdoUser=nagiosNdoGroup=nagios # Check that ndo exists.if [ ! -f $NdoBin ]; then echo "Executable file $NdoBin not found.Exiting." exit 1fi
# Check that ndo.cfg exists.if [ ! -f $NdoCfgFile ]; then echo "Configuration file $NdoCfgFile not found.Exiting." exit 1fi # See how we were called.case "$1" in
start) echo -n "Starting ndo:" touch $NdoRunFile chown $NdoUser:$NdoGroup $NdoRunFile daemon $NdoBin -c $NdoCfgFile if [ -d $NdoLockDir ]; then touch $NdoLockDir/$NdoLockFile; fi ps h -C ndo2db -o pid > $NdoRunFile if [ $? -eq 0 ]; then echo " done." exit 0 else echo " failed." $0 stop exit 1 fi ;;
stop) echo -n "Stopping ndo: "
pid_ndo killproc_ndo
# now we have to wait for ndo to exit and remove its # own NdoRunFile, otherwise a following "start" could # happen, and then the exiting ndo will remove the # new NdoRunFile, allowing multiple ndo daemons # to (sooner or later) run #echo -n 'Waiting for ndo to exit .' for i in 1 2 3 4 5 6 7 8 9 10 ; do if status_ndo > /dev/null; then echo -n '.' sleep 1 else break fi done if status_ndo > /dev/null; then echo echo 'Warning - ndo did not exit in a timely manner' else echo 'done.' fi
rm -f $NdoRunFile $NdoLockDir/$NdoLockFile ;;
status) pid_ndo printstatus_ndo ndo ;;
restart) $0 stop $0 start ;;
*) echo "Usage: ndo {start|stop|restart|status}" exit 1 ;;
esac # End of this script
# ./install.sh -i################################################################################ ## Centreon (www.centreon.com) ## Thanks for using Centreon ## ## v2.1 ## ## infos@centreon.com ## ## Make sure you have installed and configured ## sudo - sed - php - apache - rrdtool - mysql ## ################################################################################------------------------------------------------------------------------ Checking all needed binaries------------------------------------------------------------------------rmOKcpOKmvOK/bin/chmodOK/bin/chownOKechoOKmoreOKmkdirOKfindOK/bin/grepOK/bin/catOK/bin/sedOK
You will now read Centreon Licence. Press enter to continue.
GNU GENERAL PUBLIC LICENSE Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA02110-1301USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away yourfreedom to share and change it.By contrast, the GNU General PublicLicense is intended to guarantee your freedom to share and change freesoftware--to make sure the software is free for all its users.ThisGeneral Public License applies to most of the Free SoftwareFoundation's software and to any other program whose authors commit tousing it.(Some other Free Software Foundation software is covered bythe GNU Library General Public License instead.)You can apply it toyour programs, too.
When we speak of free software, we are referring to freedom, notprice.Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthis service if you wish), that you receive source code or can get itif you want it, that you can change the software or use pieces of itin new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbidanyone to deny you these rights or to ask you to surrender the rights.These restrictions translate to certain responsibilities for you if youdistribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whethergratis or for a fee, you must give the recipients all the rights thatyou have.You must make sure that they, too, receive or can get thesource code.And you must show them these terms so they know theirrights.
We protect your rights with two steps: (1) copyright the software, and(2) offer you this license which gives you legal permission to copy,distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certainthat everyone understands that there is no warranty for this freesoftware.If the software is modified by someone else and passed on, wewant its recipients to know that what they have is not the original, sothat any problems introduced by others will not reflect on the originalauthors' reputations.
Finally, any free program is threatened constantly by softwarepatents.We wish to avoid the danger that redistributors of a freeprogram will individually obtain patent licenses, in effect making theprogram proprietary.To prevent this, we have made it clear that anypatent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution andmodification follow.^L GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which containsa notice placed by the copyright holder saying it may be distributedunder the terms of this General Public License.The "Program", below,refers to any such program or work, and a "work based on the Program"means either the Program or any derivative work under copyright law:that is to say, a work containing the Program or a portion of it,either verbatim or with modifications and/or translated into anotherlanguage.(Hereinafter, translation is included without limitation inthe term "modification".)Each licensee is addressed as "you".
Activities other than copying, distribution and modification are notcovered by this License; they are outside its scope.The act ofrunning the Program is not restricted, and the output from the Programis covered only if its contents constitute a work based on theProgram (independent of having been made by running the Program).Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program'ssource code as you receive it, in any medium, provided that youconspicuously and appropriately publish on each copy an appropriatecopyright notice and disclaimer of warranty; keep intact all thenotices that refer to this License and to the absence of any warranty;and give any other recipients of the Program a copy of this Licensealong with the Program.
You may charge a fee for the physical act of transferring a copy, andyou may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portionof it, thus forming a work based on the Program, and copy anddistribute such modifications or work under the terms of Section 1above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License.(Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)^LThese requirements apply to the modified work as a whole.Ifidentifiable sections of that work are not derived from the Program,and can be reasonably considered independent and separate works inthemselves, then this License, and its terms, do not apply to thosesections when you distribute them as separate works.But when youdistribute the same sections as part of a whole which is a work basedon the Program, the distribution of the whole must be on the terms ofthis License, whose permissions for other licensees extend to theentire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contestyour rights to work written entirely by you; rather, the intent is toexercise the right to control the distribution of derivative orcollective works based on the Program.
In addition, mere aggregation of another work not based on the Programwith the Program (or with a work based on the Program) on a volume ofa storage or distribution medium does not bring the other work underthe scope of this License.
3. You may copy and distribute the Program (or a work based on it,under Section 2) in object code or executable form under the terms ofSections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code.(This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work formaking modifications to it.For an executable work, complete sourcecode means all the source code for all modules it contains, plus anyassociated interface definition files, plus the scripts used tocontrol compilation and installation of the executable.However, as aspecial exception, the source code distributed need not includeanything that is normally distributed (in either source or binaryform) with the major components (compiler, kernel, and so on) of theoperating system on which the executable runs, unless that componentitself accompanies the executable.
If distribution of executable or object code is made by offeringaccess to copy from a designated place, then offering equivalentaccess to copy the source code from the same place counts asdistribution of the source code, even though third parties are notcompelled to copy the source along with the object code.^L4. You may not copy, modify, sublicense, or distribute the Programexcept as expressly provided under this License.Any attemptotherwise to copy, modify, sublicense or distribute the Program isvoid, and will automatically terminate your rights under this License.However, parties who have received copies, or rights, from you underthis License will not have their licenses terminated so long as suchparties remain in full compliance.
5. You are not required to accept this License, since you have notsigned it.However, nothing else grants you permission to modify ordistribute the Program or its derivative works.These actions areprohibited by law if you do not accept this License.Therefore, bymodifying or distributing the Program (or any work based on theProgram), you indicate your acceptance of this License to do so, andall its terms and conditions for copying, distributing or modifyingthe Program or works based on it.
6. Each time you redistribute the Program (or any work based on theProgram), the recipient automatically receives a license from theoriginal licensor to copy, distribute or modify the Program subject tothese terms and conditions.You may not impose any furtherrestrictions on the recipients' exercise of the rights granted herein.You are not responsible for enforcing compliance by third parties tothis License.
7. If, as a consequence of a court judgment or allegation of patentinfringement or for any other reason (not limited to patent issues),conditions are imposed on you (whether by court order, agreement orotherwise) that contradict the conditions of this License, they do notexcuse you from the conditions of this License.If you cannotdistribute so as to satisfy simultaneously your obligations under thisLicense and any other pertinent obligations, then as a consequence youmay not distribute the Program at all.For example, if a patentlicense would not permit royalty-free redistribution of the Program byall those who receive copies directly or indirectly through you, thenthe only way you could satisfy both it and this License would be torefrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable underany particular circumstance, the balance of the section is intended toapply and the section as a whole is intended to apply in othercircumstances.
It is not the purpose of this section to induce you to infringe anypatents or other property right claims or to contest validity of anysuch claims; this section has the sole purpose of protecting theintegrity of the free software distribution system, which isimplemented by public license practices.Many people have madegenerous contributions to the wide range of software distributedthrough that system in reliance on consistent application of thatsystem; it is up to the author/donor to decide if he or she is willingto distribute software through any other system and a licensee cannotimpose that choice.
This section is intended to make thoroughly clear what is believed tobe a consequence of the rest of this License.^L8. If the distribution and/or use of the Program is restricted incertain countries either by patents or by copyrighted interfaces, theoriginal copyright holder who places the Program under this Licensemay add an explicit geographical distribution limitation excludingthose countries, so that distribution is permitted only in or amongcountries not thus excluded.In such case, this License incorporatesthe limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versionsof the General Public License from time to time.Such new versions willbe similar in spirit to the present version, but may differ in detail toaddress new problems or concerns.
Each version is given a distinguishing version number.If the Programspecifies a version number of this License which applies to it and "anylater version", you have the option of following the terms and conditionseither of that version or of any later version published by the FreeSoftware Foundation.If the Program does not specify a version number ofthis License, you may choose any version ever published by the Free SoftwareFoundation.
10. If you wish to incorporate parts of the Program into other freeprograms whose distribution conditions are different, write to the authorto ask for permission.For software which is copyrighted by the FreeSoftware Foundation, write to the Free Software Foundation; we sometimesmake exceptions for this.Our decision will be guided by the two goalsof preserving the free status of all derivatives of our free software andof promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTYFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.EXCEPT WHENOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIESPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSEDOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OFMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.THE ENTIRE RISK ASTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.SHOULD THEPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITINGWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/ORREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISINGOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITEDTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BYYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHERPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THEPOSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS^L How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatestpossible use to the public, the best way to achieve this is to make itfree software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program.It is safestto attach them to the start of each source file to most effectivelyconvey the exclusion of warranty; and each file should have at leastthe "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year><name of author>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA02110-1301USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like thiswhen it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriateparts of the General Public License.Of course, the commands you use maybe called something other than `show w' and `show c'; they could even bemouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or yourschool, if any, to sign a "copyright disclaimer" for the program, ifnecessary.Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989Ty Coon, President of Vice
This General Public License does not permit incorporating your program intoproprietary programs.If your program is a subroutine library, you mayconsider it more useful to permit linking proprietary applications with thelibrary.If this is what you want to do, use the GNU Library GeneralPublic License instead of this License.
Do you accept GPL license ?, default to :> y------------------------------------------------------------------------ Please choose what you want to install------------------------------------------------------------------------
Do you want to install : Centreon Web Front, default to :> y
Do you want to install : Centreon CentCore, default to :> y
Do you want to install : Centreon Nagios Plugins, default to :> y
Do you want to install : Centreon Snmp Traps process, default to :> y
------------------------------------------------------------------------ Start CentWeb Installation------------------------------------------------------------------------
Where is your Centreon directory?default to > Path /usr/local/centreonOK
Where is your Centreon log directorydefault to > Path /usr/local/centreon/logOK
Where is your Centreon etc directorydefault to > Path /etc/centreonOK
Where is your Centreon generation_files directory?default to > Path /usr/local/centreonOK
Where is your Centreon variable library directory?default to > Path /var/lib/centreonOK
Where is your CentPlugins Traps binarydefault to > Path /usr/local/centreon/binOK
Where is the RRD perl module installed default to > /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pmPath /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multiOK/usr/bin/rrdtoolOK/bin/mailOK
Where is PEAR default to > /usr/share/pear/PEAR.phpPath /usr/share/pearOK
Where is installed Nagios ?default to > /usr/lib/nagiosPath /usr/lib/nagiosOK
Where is your nagios config directorydefault to > /etc/nagiosPath /etc/nagiosOK
Where is your Nagios var directory ?default to > /var/nagiosPath /var/nagiosOK
Where is your Nagios plugins (libexec) directory ?default to > /usr/lib/nagios/pluginsPath /usr/lib/nagios/pluginsOK/usr/bin/nagiosOK
Where is your Nagios image directory ?default to > /usr/share/nagios/images/logosPath /usr/share/nagios/images/logosOK/usr/bin/nagiostatsOKp1_file : /usr/bin/p1.plOK/usr/bin/phpOK/usr/bin/perlOKFinding Apache group :apacheFinding Apache user :apacheFinding Nagios user :nagiosFinding Nagios group :nagios
Where is your NDO ndomod binary ? default to > /usr/sbin/ndomod.o is not a valid file.CRITICAL
Where is your NDO ndomod binary ? default to > /usr/lib/nagios/bin/ndomod.o/usr/lib/nagios/bin/ndomod.oOK
------------------------------------------------------------------------ Configure Sudo------------------------------------------------------------------------
Where is sudo configuration filedefault to > /etc/sudoersOKNagios init script OKYour sudo has been configured previously
Do you want me to reconfigure your sudo ? (WARNING) , default to :> yConfiguring SudoOK
------------------------------------------------------------------------ Configure Apache server------------------------------------------------------------------------Finding Apache Centreon configuration file'/etc/httpd/conf.d/centreon.conf' :OK
Do you want to update Centreon Apache sub configuration file ?, default to :> yCreate '/etc/httpd/conf.d/centreon.conf'OKConfiguring ApacheOK
Do you want to reload your Apache ?, default to :> yReloading Apache serviceOKPreparing Centreon temporary filesChange right on /usr/local/centreon/logOKChange right on /etc/centreonOKChange right on /usr/share/nagios/images/logosOKInstall nagios documentationFAILChange macros for insertBaseConf.sqlOKChange macros for php filesChange macros for php filesOKChange right on /etc/nagiosOKCopy CentWeb in system directoryInstall CentWeb (web front of centreon)OKInstall librariesFAILCopying libinstallFAILChange macros for centreon.cronOKInstall Centreon cron.d fileOKChange macros for archiveDayLogOKChange macros for centAcl.phpOKInstall cron directoryFAIL
------------------------------------------------------------------------Pear Modules------------------------------------------------------------------------Check PEAR modulesPEAR1.4.91.9.1OKDB1.7.61.7.13OKDB_DataObject1.8.41.9.5OKDB_DataObject_FormBuilder1.0.0RC41.0.0RC7OKMDB22.0.02.4.1OKDate1.4.61.4.7OKHTML_Common1.2.21.2.5OKHTML_QuickForm3.2.53.2.12OKHTML_QuickForm_advmultiselect1.1.01.5.1OKHTML_Table1.6.11.8.3OKArchive_Tar1.11.3.1OKAuth_SASL1.0.11.0.4OKConsole_Getopt1.21.2OKNet_SMTP1.2.81.4.4OKNet_Socket1.0.11.0.10OKNet_Traceroute0.210.21.3OKNet_Ping2.4.12.4.5OKValidate0.6.20.8.4OKXML_RPC1.4.51.5.0OKSOAP0.10.10.12.0OKLog1.9.111.12.5OKAll PEAR modulesOK
------------------------------------------------------------------------ Centreon Post Install------------------------------------------------------------------------Create /usr/local/centreon/www/install/install.conf.phpOKCreate /etc/centreon/instCentWeb.conf OK
------------------------------------------------------------------------ Start CentStorage Installation------------------------------------------------------------------------
Where is your Centreon Run Dir directory?default to > You select slash...
Where is your Centreon Run Dir directory?default to > Path /var/run/centreonOK
Where is your CentStorage binary directorydefault to > Path /usr/local/centreon/binOK
Where is your CentStorage RRD directorydefault to > Path /var/lib/centreonOKFinding Nagios group :nagiosFinding Nagios user :nagiosPreparing Centreon temporary files/tmp/centreon-setup exists, it will be moved...install www/install/createTablesCentstorage.sqlOKCentStorage status Directory already existsPASSEDCentStorage metrics Directory already existsPASSEDChange macros for centstorage binaryOKInstall CentStorage binaryOKInstall library for centstorageFAILChange right : /var/run/centreonOKChange macros for centstorage init scriptOK
Do you want me to install CentStorage init script ?, default to :> yCentStorage init script installedOK
Do you want me to install CentStorage run level ?, default to :> yChange macros for logAnalyserOKInstall logAnalyserOKChange macros for nagiosPerfTraceOKInstall nagiosPerfTraceOKChange macros for purgeLogsOKInstall purgeLogsOKChange macros for purgeCentstorageOKInstall purgeCentstorageOKChange macros for centreonPurge.shOKInstall centreonPurge.shOKChange macros for centstorage.cronOKInstall CentStorage cronOKCreate /etc/centreon/instCentStorage.conf OK
------------------------------------------------------------------------ Start CentCore Installation------------------------------------------------------------------------
Where is your CentCore binary directorydefault to > Path /usr/local/centreon/binOK/usr/bin/sshOK/usr/bin/scpOKFinding Nagios group :nagiosFinding Nagios user :nagiosPreparing Centreon temporary files/tmp/centreon-setup exists, it will be moved...Change CentCore MacroOKCopy CentCore in binary directoryOKChange right : /var/run/centreonOKChange right : /var/lib/centreonOKReplace CentCore init script MacroOK
Do you want me to install CentCore init script ?, default to :> yCentCore init script installedOK
Do you want me to install CentCore run level ?, default to :> yCreate /etc/centreon/instCentCore.conf OK
------------------------------------------------------------------------ Start CentPlugins Installation------------------------------------------------------------------------
Where is your CentPlugins lib directorydefault to > Path /var/lib/centreon/centpluginsOKFinding Nagios user :nagiosFinding Nagios group :nagiosPreparing Centreon temporary files/tmp/centreon-setup exists, it will be moved...Change macros for CentPluginsOKInstalling the pluginsOKChange right on centreon.confOKCentPlugins is installed
------------------------------------------------------------------------ Start CentPlugins Traps Installation------------------------------------------------------------------------
Where is your SNMP configuration directorydefault to > /etc/snmpOK
Where is your SNMPTT binaries directorydefault to > /usr/local/centreon/bin/OKFinding Nagios group :nagiosFinding Apache user :apachePreparing Centreon temporary files/tmp/centreon-setup exists, it will be moved...Change macros for CentPluginsTrapsOKInstalling the plugins Trap binaries OKBackup all your snmp filesOKChange macros for snmptrapd.confOKChange macros for snmptt.iniOKInstall : snmptrapd.confOKInstall : snmp.confOKInstall : snmptt.iniOKInstall : snmpttOKInstall : snmpttconvertmibOKGenerate SNMPTT configurationOKCreate /etc/centreon/instCentPlugins.conf OK################################################################################ ## Go to the URL : http://your-server/centreon/ ## to finish the setup ## ## Report bugs at http://forge.centreon.com ## ## Thanks for using Centreon. ## ----------------------- ## Contact : infos@centreon.com ## http://www.centreon.com ## ################################################################################
# pear listInstalled packages, channel pear.php.net:=========================================Package Version StateArchive_Tar 1.3.7 stableAuth_SASL 1.0.4 stableConsole_Getopt 1.3.0 stableDB 1.7.13stableDB_DataObject 1.9.5 stableDB_DataObject_FormBuilder 1.0.1 stableDate 1.4.7 stableHTML_Common 1.2.5 stableHTML_QuickForm 3.2.12stableHTML_QuickForm_advmultiselect 1.5.1 stableHTML_Table 1.8.3 stableHTTP_Request 1.4.4 stableLog 1.12.5stableMDB2 2.4.1 stableNet_Ping 2.4.5 stableNet_SMTP 1.4.4 stableNet_Socket 1.0.10stableNet_Traceroute 0.21.3alphaNet_URL 1.0.15stablePEAR 1.9.1 stableSOAP 0.12.0betaValidate 0.8.4 betaXML_RPC 1.5.4 stable 擦,好乱,不会排版么?而且这个也没什么用啊
页:
[1]