错误:Package: fping-3.10-1.el7.rf.x86_64 (rpmforge release下载) Requires: libc.so.6(GLIBC_2.15)(64bit)怎么办

南非蚂蚁 的BLOG
用户名:南非蚂蚁
文章数:181
评论数:1566
访问量:2633081
注册日期:
阅读量:5863
阅读量:12276
阅读量:336595
阅读量:1040406
51CTO推荐博文
一、Centreon依赖安装介绍Centreon的安装有一定的复杂性,对操作系统库依赖较多,在安装方式上有源码编译安装和yum源安装两种,源码编译安装较复杂,出错几率也较高,因此这里推荐采用yum源方式进行安装。Centreon的安装主要分为下面几个部分。1)系统基础依赖库的安装:例如fping、cpp、gcc、gd、libjpeg-devel、rrdtool等软件包。2)rrdtool的安装:安装rrdtool主要用于绘图,Centreon利用rrdtool将收集到的数据绘制成图形报表。3)nagios、nagios-plugins的安装:因为nagios是Centreon底层监控模块,所以nagios的安装是必不可少的。4)ndoutils的安装:ndoutils是nagios与数据库进行连接的工具,它将nagios数据存入数据库,然后又将数据读取出来,它在nagios与centerton之间接收和发送数据。5)nrpe的安装:nrpe主要与远程的主机进行通信,进而收集远程主机的各种私有数据。6)Centreon的安装:这个才是要介绍的重点。Centreon的官方网站是/,可以在这里下载最新的稳定版本,具体的安装过程下面会详细讲解。这里我们采用的操作系统是CentOS5.5 x86_64版本,下面开始安装Centreon+nagios监控系统。二、安装支持Centreon的yum源这里我们安装两个yum源,分别是rpmforge和epel,可以从如下两个地址下载到: 大家可根据自己的系统环境选择合适的版本下载,这里下载的是:rpmforge-release-0.5.3-1.el5.rf.x86_64.rpmepel-release-5-4.noarch.rpm。下载完成,执行以下命令安装即可:[root@centreon-server&&~]#rpm&-ivh&rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
[root@centreon-server&&~]#rpm&-ivh&epel-release-5-4.noarch.rpm安装完成后,会在/etc/yum.repos.d下生成yum源的配置文件。最后,还需要添加一个yum源,内容如下:[root@centreon-server&yum.repos.d]#&more&centreon.repo&
[centreon]&
name=Dag&RPM&Repository&for&Red&Hat&Enterprise&Linux&
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag&
gpgcheck=1&
gpgkey=/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1将centreon.repo文件也放到/etc/yum.repos.d下即可,这个yum源中有我们需要的nagios、ndoutils、nrpe等软件包。三、安装系统基础依赖库(1)安装GD库及Apache
[root@centreon-server&app]#&yum&install&httpd&gd&fontconfig-devel&libjpeg-devel&libpng-devel&gd-devel&perl-GD
(2)安装Mysql库、PHP及扩展
[root@centreon-server&app]#yum&install&openssl-devel&perl-DBD-MySQL&mysql-server&mysql-devel&php&php-mysql&php-gd&php-ldap&php-xml&php-mbstring
(3)安装Perl及扩展模块
[root@centreon-server&app]#yum&install&perl-Config-IniFiles&perl-DBI&perl-DBD-MySQL&perl-Crypt-DES&perl-Digest-SHA1
(4)安装SNMP及依赖库
[root@centreon-server&app]#yum&install&perl-Digest-HMAC&net-snmp-utils&perl-Socket6&perl-IO-Socket-INET6&net-snmp&net-snmp-libs&php-snmp
(5)安装RRDTool绘图工具
[root@centreon-server&app]#yum&install&rrdtool&perl-rrdtool
(6)安装其他所需库
[root@centreon-server&app]#yum&install&&dmidecode&lm_sensors&perl-Net-SNMP&net-snmp-perl&fping&cpp&gcc&gcc-c++&libstdc++&glib2-devel
(7)安装PEAR
[root@centreon-server&app]#yum&install&&php-pear
[root@centreon-server&app]#pear&channel-update&pear.php.net四、安装nagios及nagios-plugins有了上面三个yum源,安装nagios及插件会非常简单,操作如下:[root@centreon-server&app]#yum&install&nagios&nagios-devel
[root@centreon-server&app]#yum&install&&nagios-pluginsNagios在3.5版本之后,将Nagios自带的所有插件都放在了另一个rpm包中,如果安装的是Nagios 3.5之上的版本,还需要安装nagios-plugins-all这个插件包,执行如下命令即可:[root@centreon-server&app]#yum&install&&nagios-plugins-all完成Nagios安装后就会发现,插件安装路径是/usr/lib64/nagios/plugins,而配置文件路径是/etc/nagios,日志文件路径是/var/log/nagios,这几个路径可能会在后面配置的时候用到。五、安装ndoutilsndoutils是必不可少的一个部分,因为它是nagios与数据库进行连接的工具。有了上面的yum源,安装ndoutils变得非常简单,操作如下:[root@centreon-server&app]#yum&install&&ndoutils
根据ndoutils版本的不同,可能还需要安装ndoutils-mysql,执行如下命令即可:
[root@centreon-server&app]#yum&install&ndoutils-mysql完成ndoutils安装后发现,Ndomod模块安装路径是/usr/libexec/ndomod-3x.o,或者/usr/lib64/nagios/brokers/ndomod.so,而对应的维护脚本路径是/etc/init.d/ndoutils或/etc/init.d/ndo2db。在本文介绍中,Ndomod模块安装路径是/usr/libexec/ndomod-3x.o,而对应的维护脚本是/etc/init.d/ndoutils,这些路径会在安装Centreon过程中用到。六、安装nrpe如果需要获取远程主机的私有信息,就需要在监控主机上安装check_nrpe插件,同时在被监控主机上安装nrpe服务。安装nrpe的方法很简单,也可以通过yum方式执行安装。在监控主机上安装check_nrpe插件:[root@centreon-server&app]#yum&install&check_nrpe在完成check_nrpe安装后,check_nrpe插件安装到了/usr/lib64/nagios/plugins目录下。在被监控机上安装nrpe服务:[root@node1&app]#yum&install&nrpe在完成nrpe安装后,默认的配置文件路径是/etc/nagios/nrpe.cfg,而维护nrpe的脚本路径是/etc/init.d/nrpe。本文出自 “” 博客,谢绝转载!
了这篇文章
类别:┆阅读(0)┆评论(0)
10:00:10 10:18:17 00:24:23 10:14:48 13:11:19 04:15:23[SOLVED] Installing MONO error Requires: libc.so.6(GLIBC_2.15)(64bit)
Download your favorite Linux distribution at .
Remember Me?
Linux - Software This forum is for Software issues.
Having a problem installing a new program?
Want to know which application is best for the job?
Post your question in this forum.
dannylalala
Registered: Apr 2015
Installing MONO error Requires: libc.so.6(GLIBC_2.15)(64bit)
So this is my first day using centos. I've messed around with Xubuntu and a tiny bit off kali linux but I'm very much a beginner when it comes to linux.
I upgraded my hosting package to vps because 1) I wanted to be able to run commands as root to install a patch for a magento install and 2) I want to install MONO so that a .NET script will run.
I have no knowledge of .net I'm rebuilding a website for someone
in wordpress but they want to keep a specific section that was built with .net and I read that mono would make the script run.
So I followed the instructions on
Run Commands
rpm --import &/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF&
yum-config-manager --add-repo http://download./repo/centos/
Then &Run a package upgrade to upgrade existing packages to the latest available& &&I'm not sure what I'm meant to be upgrading I typed
yum update
but it says everythings up to date.
So I then tried
yum install mono-devel
yum install mono-complete
both give errors
mono devel errors
Error: Package: mono-core-3.12.1-0.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.16)(64bit)
Error: Package: mono-devel-3.12.1-0.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libtiff.so.5()(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libpng15.so.15()(64bit)
Error: Package: libmonosgen-2_0-1-3.12.1-0.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libpng15.so.15(PNG15_0)(64bit)
mono-complete errors
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: mono-devel-3.12.1-0.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libmonoboehm-2_0-1-3.12.1-0.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libtiff.so.5()(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libtiff.so.5(LIBTIFF_4.0)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libpng15.so.15()(64bit)
Error: Package: libmonosgen-2_0-1-3.12.1-0.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: mono-core-3.12.1-0.x86_64 (download._repo_centos_)
Requires: libc.so.6(GLIBC_2.16)(64bit)
Error: Package: libgdiplus0-3.12-1.x86_64 (download._repo_centos_)
Requires: libpng15.so.15(PNG15_0)(64bit)
If it helps I'm currently in the /root directory
and it's CentOS 6.4
Can anyone explain why I'm getting these errors and what I need to do to fix?
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,677
from the instructions that you pointed to
DID you install the EPEL repo like the instructions stated ?
see the wiki
also this is 6.4
NOT!!! support old versions
ONLY!!! version of 6 that is supported is the CURRENT 6.6
upgrade NOW
before you even try to install mono ( mono will only run a small part of the Microsoft ONLY!!! .net C# code)
yum --relesever=6.6 upgrade
there is NO new software for 6.4
all 6.4 software e is at least 1 year OUT OF DATE
dannylalala
Registered: Apr 2015
Original Poster
Yes I installed epel but was still getting this error. I have whm so after contacting my hosting company they told me I could install with easyapache. But even now with mono installed it loads the first aspx page but then gives error:
The ConnectionString is automatically generated for AccessDataSource and hence cannot be set.
I really don't want to deal with .net it just seems like an added pain on top of the one thousand other things I'm trying to learn at the minute grrr...
Originally Posted by John VV
from the instructions that you pointed to
also this is 6.4
NOT!!! support old versions
ONLY!!! version of 6 that is supported is the CURRENT 6.6
upgrade NOW
before you even try to install mono ( mono will only run a small part of the Microsoft ONLY!!! .net C# code)
yum --relesever=6.6 upgrade
Ran the code but it gives error
Command line error: no such option: --relesever
I wasn't sure if there was a typo so tried
yum --releserver=6.6 upgrade
but it just gives the same error
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,677
did you run the &help& menu or the man page to see IF it was a typo ?
yum --help
and yes i did make a typo
------- type in your root password when asked for ----------
yum --releasever=6.6 upgrade
as to the error in the first post
there is no repo that you can access using the DEFAULT repo locations
the 6.4 files were MOVED to the historical archive &The VAULT&
this is the current PLACE HOLDER where the 6.4 files WERE ( not there anymore)
This directory (and version of CentOS) is deprecated.
For normal users,
you should use /6/ and not /6.4/ in your path. Please see this FAQ
concerning the CentOS release scheme:
If you know what you are doing, and absolutely want to remain at the 6.4
level, go to
for packages.
Please keep in mind that 6.0, 6.1, 6.2, 6.3 and 6.4 no longer gets any updates, nor
any security fix's.
the same applies for 6.5
Last edited by John VV; 04-24-2015 at .
dannylalala
Registered: Apr 2015
Original Poster
After running the command I get this
yum --releasever=6.6 upgrade
Loaded plugins: fastestmirror
Setting up Upgrade Process
Determining fastest mirrors
epel/metalink
* epel: www.gtlib.gatech.edu
* extras: centos.mirror.nac.net
* ius: iad.
* rpmforge: mirror.us.leaseweb.net
* updates: mirror.millry.co
base/primary_db
download._repo_centos_
download._repo_centos_/primary_db
epel/primary_db
extras/primary_db
home_tpokorra_mono
home_tpokorra_mono/primary
home_tpokorra_mono
ius/primary_db
rpmforge/primary_db
updates/primary_db
No Packages marked for Update
dannylalala
Registered: Apr 2015
Original Poster
it's updated from doing that I just went to
cat etc/redhat-release
and it returns
CentOS release 6.6 (Final)
Thanks! I spoke to the person who owns the site with the .net stuff and agreed to get rid of it. So I'm not going to worry about that for now. But, could you let me know some places to start reading up about servers etc so I can get my head around it?
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
code is Off
HTML code is Off
Similar Threads
05-24-2012
UmaSantharam
Linux - Software
02-13-2012
12-13-2010
Linux - Security
06-06-2007
vivek_thampy
Linux - Software
08-09-2004
All times are GMT -5. The time now is .
Advertisement
Write for LQ
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, .
& Latest Threads使用Centreon管理Nagios教程之Nagios和Centreon安装 - 服务器技术综合 - 次元立方网 - 电脑知识与技术互动交流平台
使用Centreon管理Nagios教程之Nagios和Centreon安装
本文介绍完整的nagios和centreon安装过程。
安装环境:
CentOS5.6,X64 updated。
Monitor Engine:Nagios
Broker module:NDoutils
已安装并启动mysql
路径为:/usr/local/mysql/
sock路径:/var/lib/mysql/mysql.sock
步骤参考英文原文:/docs/centreon/en/latest/installation/from_sources.html
1、下载安装包
#下载nagios、nagios-plugin、nrpe、ndoutils以及ndoutils的一个patch
cd /data/tool
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.5.1.tar.gz
wget --no-check-certificate https://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz
wget http://jaist.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
wget http://nchc.dl.sourceforge.net/project/nagios/ndoutils-1.x/ndoutils-1.5.2/ndoutils-1.5.2.tar.gz
wget /trunk/ndoutils-patch/ndoutils1.5.2_light.patch
#在 /Content-Products-IT-network-monitoring/supported-software-and-requirements 检查安装centreon所需要的软件包 #下载 centreon 2.4.0
wget /index.php?id=4264
#安装一些必要的package
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp
2、开始安装nagios#建立用户和组
chattr -i /etc/passwd /etc/shadow /etc/group /etc/gshadow
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
#安装 nagios-core
tar -zxvf nagios-3.5.1.tar.gz
./configure --prefix=/usr/local/nagios --with-command-group=nagcmd \
--enable-event-broker --enable-embedded-perl --with-perlcache
make install
make install-init
make install-config
make install-commandmode
make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
#启动 nagios apache
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start
/etc/init.d/httpd start
#创建nagios用户用于登录
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
#安装 nagios-plugins
tar -zxvf nagios-plugins-1.5.tar.gz
cd ../nagios-plugins-1.5
./configure --with-nagios-user=nagios \
--with-nagios-group=nagios \
--prefix=/usr/local/nagios \
--enable-redhat-pthread-workaround --with-ipv6=no \
--enable-perl-modules \
--with-mysql=/usr/local/mysql
make && make install
tar -zxvf nrpe-2.15.tar.gz
./configure --prefix=/usr/local/nagios
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd
安装xinetd以便管理
yum install xinetd -y
sed -i 's/127.0.0.1/127.0.0.1 183.61.70.34/' /etc/xinetd.d/nrpe
sed -i '578 i\nrpe
# NRPE' /etc/services
service xinetd restart
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_users
sed -i 's/allowed_hosts=127.0.0.1/allowed_hosts=127.0.0.1,&your ip addr&/' /usr/local/nagios/etc/nrpe.cfg
3、安装 ndoutils
tar -zxvf ndoutils-1.5.2.tar.gz
cd ndoutils-1.5.2
patch -p1 -N & ../ndoutils1.5.2_light.patch
./configure --prefix=/usr/local/nagios/ --enable-mysql --with-mysql=/usr/local/mysql --with-ndo2db-user=nagios --with-ndo2db-group=nagios
默认的源文件 make 会报错 修改如下
sed -i -e 's/#include &mysql\/mysql.h&/#include &\/usr\/local\/mysql\/include\/mysql.h&/' include/config.h
sed -i -e 's/#include &mysql\/errmsg.h&/#include &\/usr\/local\/mysql\/include\/errmsg.h&/' include/config.h
make install
cp ./config/ndo2db.cfg-sample /usr/local/nagios/etc/ndo2db.cfg
cp ./config/ndomod.cfg-sample /usr/local/nagios/etc/ndomod.cfg
#编辑/usr/local/nagios/etc/nagios.cfg 在broker_module处添加
broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
#安装启动文件
chmod +x daemon-init
cp daemon-init /etc/init.d/ndo2db
#创建数据库用户
GRANT ALL PRIVILEGES ON nagios.* TO 'nagios'@'localhost' IDENTIFIED BY 'nagios';
&&FLUSH PRIVILEGES;
#安装数据库
./installdb -u nagios -p nagios -h localhost -d nagios
4、安装 centreon
usermod -a -G apache centreon
usermod -a -G nagios centreon
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
wget /rpm/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
yum clean all
yum update
yum upgrade
yum install httpd gd fontconfig-devel libjpeg-devel libpng-devel gd-devel perl-GD \
openssl-devel perl-DBD- mysql-server mysql-devel php php-mysql php-gd php-ldap php-xml php-mbstring \
perl-Config-IniFiles perl-DBI perl-DBD- rrdtool perl-rrdtool perl-Crypt-DES perl-Digest-SHA1 \
perl-Digest-HMAC net-snmp-utils perl-Socket6 perl-IO-Socket-INET6 net-snmp net-snmp-libs php-snmp \
dmidecode lm_sensors perl-Net-SNMP net-snmp-perl fping cpp gcc gcc-c++ libstdc++ glib2-devel \
usermod -U apache
pear channel-update pear.php.net
peardev upgrade-all
pear upgrade-all
报错处理:[PHP Fatal error: Allowed memory size of 8388608 bytes exhausted]
echo 'memory_limit = 256M' &&/etc/php.ini
#开始安装centreon
./install.sh -i
#经过一系列回车(保持默认配置)以及需要填写的路径完成命令行下的centreon安装。
#此处不一一贴出
#需要注意的两个路径RRDs.pm、PEAR.php 可使用find 找到准确路径
/usr/local/rrdtool/lib/perl/5.8.8/x86_64-linux-thread-multi/RRDs.pm
/usr/share/pear/PEAR.php
#配置centreon数据库用户
GRANT ALL PRIVILEGES ON `centreon`.* TO 'centreon'@'localhost' identified by 'centreon';
GRANT ALL PRIVILEGES ON `centreon_storage`.* TO 'centreon'@'localhost' identified by 'centreon';
GRANT ALL PRIVILEGES ON `centreon_status`.* TO 'centreon'@'localhost' identified by 'centreon';
FLUSH PRIVILEGES;
#登录web界面进行下一步安装:
http://SERVER_ADDRESS/centreon
#检查php拓展
#配置Nagios相关路径
#配置NDoutils路径
#管理员账户密码
#数据库连接信息
#开始安装数据库
#安装完成可登录
以上为centreon安装完整步骤,坑稍微有点多。
特别是centreon命令行模式安装时每个路径、文件名都不要写错。
延伸阅读:
目的:通过挂载的方式,可以类似访问本地磁盘的方式一...
本教程为 李华明 编著的iOS-Cocos2d游戏开发系列教程:教程涵盖关于i......
专题主要学习DirectX的初级编程入门学习,对Directx11的入门及初学者有......
&面向对象的JavaScript&这一说法多少有些冗余,因为JavaScript 语言本......
Windows7系统专题 无论是升级操作系统、资料备份、加强资料的安全及管......用户名:kk
文章数:15
访问量:3464
注册日期:
阅读量:5863
阅读量:12276
阅读量:336595
阅读量:1040406
51CTO推荐博文
一&&&&介绍smokeping是rrdtool的作者Tobi Oetiker的作品,所以它在图形显示方面有很大优势,也是一个很有特点的opensource工具:多种探测方式,包括fping、echoping、dig、curl等。二&&&&安装环境虚拟机版本:&&&&VMware Workstation&8.0.4 build-744019OS 版本 :&&&&CentOS 6.2 i686IP 地址:192.168.1.115三&&&&安装步骤&&a.查看系统版本及内核& ##################################################&b. 查看selinux是否关闭& #################################################&&c.&本文使用YUM安装其他资源包,编译安装smokeping方式。apt.sw.be这个第三方软件仓库,更新很快,资源很全。& &下载跟系统适合的对应rpmforge RPM包进行安装,这样安装好rpmforge包后,在/etc/yum.repos.d/目录下会生成.repo文件[root@localcentos&upload]#&wget&http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
[root@localcentos&upload]#&rpm&-ivh&rpmforge-release-0.5.3-1.el6.rf.i686.rpm
[root@localcentos&upload]#&yum&clean
[root@localcentos&upload]#&yum&makecache& &############################################& & d.安装rrdtool与依赖库[root@localcentos&yum.repos.d]#&yum&install&perl&perl-Net-Telnet&perl-Net-DNS&perl-LDAP&perl-libwww-perl&perl-RadiusPerl&perl-IO-Socket-SSL&perl-Socket6perl-CGI-SpeedyCGI&perl-FCGI&perl-CGI-SpeedCGI&perl-Time-HiRes&perl-ExtUtils-MakeMaker&perl-RRD-Simple&rrdtool&rrdtool-perl&curl&fping&echoping&&httpd&httpd-devel&gcc&make&wget&libxml2-devel&libpng-devel&glib&pango&&pango-devel&freetype&freetype-devel&fontconfig&cairo&cairo-devel&libart_lgpl&libart_lgpl-devel&mod_fastcgi&screen& #######################################################& & e.安装smokeping[root@localcentos&upload]#&wget&http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.9.tar.gz
[root@localcentos&upload]#&tar&zxvf&smokeping-2.6.9.tar.gz&
[root@localcentos&smokeping-2.6.9]#&./configure&--prefix=/usr/local/smokeping& &&& &&&&& *******编译过程中checking checking for perl module 'Config::Grammar'... Failed,这是缺少Config::Grammar这个模块(这个模块的作用是生成smokeping的配置文件,运行下面脚本会自动从网上下载安装需要的模块。否则在smokeping的安装目录下的etc目录下缺少config.dist这个文件。& &&& &&& & *******备注:下面几个模块是安装smokeping缺一不可的& &&& &&& &&& &&& &&& &&&&FCGI (The module for supporting FastCGI operation.)& &&& &&& &&& &&& &&& & &&CGI, CGI::Fast (Perl CGI/FastCGI support. Might already be installed localy.)& &&& &&& &&& &&& &&& & &&Config::Grammar (The configuration file parser used in smokeping)& &&& &&& &&& &&& &&& &&& &LWP (The master/slave functionality introduced a dependency on LWP::UserAgent from the libwww-perl (also known as LWP) library. The module is&&required even if the master/slave mode is not enabled)[root@localcentos&smokeping-2.6.9]#&./setup/build-perl-modules.sh&/usr/local/smokeping/thirdparty
[root@localcentos&smokeping-2.6.9]#&/usr/bin/gmake&install
*****&smokeping&安装完毕&**********& & & ##################################################& & f.安装中文语言支持[root@localcentos&smokeping-2.6.9]#&yum&groupinstall&"Chinese&Support"&&&&& ###################################################& & g.配置smokeping& &&& & 1.创建cache . data . var目录& &&[root@localcentos&smokeping-2.6.9]#&cd&/usr/local/smokeping/
[root@localcentos&smokeping]#&mkdir&cache&data&var
[root@localcentos&smokeping]#&ll
&&&&&&总用量&36
&&drwxr-xr-x.&2&root&root&4096&8月&&17&02:13&bin
&&drwxr-xr-x.&2&root&root&4096&8月&&17&02:19&cache
&&drwxr-xr-x.&2&root&root&4096&8月&&17&02:19&data
&&drwxr-xr-x.&3&root&root&4096&8月&&17&02:14&etc
&&drwxr-xr-x.&3&root&root&4096&8月&&17&02:14&htdocs
&&drwxr-xr-x.&3&root&root&4096&8月&&17&02:14&lib
&&drwxr-xr-x.&3&root&root&4096&8月&&17&02:14&share
&&drwxr-xr-x.&6&root&root&4096&8月&&17&02:11&thirdparty
&&drwxr-xr-x.&2&root&root&4096&8月&&17&02:19&var& &&& & 2.创建日志文件&& & & & &&[root@localcentos&smokeping]#&touch&/var/log/smokeping.log& &&& & 3.授权& & & &[root@localcentos&smokeping]#&chown&apache:apache&cache&data&var
[root@localcentos&smokeping]#&chown&apache:apache&/var/log/smokeping.log& &&& & 4.修改配置文件& &&& & & & &[root@localcentos&smokeping]#&touch&/var/log/smokeping.log
[root@localcentos&smokeping]#&chown&apache:apache&cache&data&var
[root@localcentos&smokeping]#&chown&apache:apache&/var/log/smokeping.log&
[root@localcentos&smokeping]#&cd&/usr/local/smokeping/htdocs/
[root@localcentos&htdocs]#&mv&smokeping.fcgi.dist&smokeping.fcgi
[root@localcentos&htdocs]#&cd&/usr/local/smokeping/etc/
[root@localcentos&etc]#&mv&config.dist&config
[root@localcentos&etc]#&vi&config& &&& &&& &&& &修改配置文件以下内容& &&& & & &&&***&General&***
&cgiurl&&&=&http://some.url/smokeping.cgi&&将some.url改为你的IP或域名&
&cgiurl&&&=&http://192.168.1.115/smokeping.cgi&&这里改为本机器的IP&
&&&&&&&&&&&&
&***&Database&***
&step&&&&&=&300&&将300改为60,这个是检测的时间
&pings&&&&=&20&&&&这个不用修改
&***&Presentation&***
&charset&=&zh_CN.UTF-8&&在***&Presentation&***这个下面添加这行
&&&&&&&&&&&&&&&&&&&&
&***&Probes&***
&binary&=&/usr/sbin/fping&&根据实际情况该此处fping程序路径(依实际情况而定,不能照搬)
&######修改binary参数时要依据实际情况改,不能照搬
&######[root@localcentos&etc]#&type&fping
&######fping&is&/usr/sbin/fping
&######运行上面的命令确定fping这个二进制程序的位置& &&& &&& 5.配置完成之后修改密码文件[root@localcentos&etc]#&chmod&600&/usr/local/smokeping/etc/smokeping_secrets.dist&&& & & &&##########修改apache配置文件 httpd.conf&,让监控数据可以在浏览器上呈现。&修改配置httpd.conf文件&[root@localcentos&etc]#&vi&/etc/httpd/conf/httpd.conf&&在此文件最后位置加入如下访问控制参数
&&&&&&&&&&&&&&&&&&&#########changed&by&kl&##############
&&&&&&&&&&&&&&&&&&&&Alias&/cache&"/usr/local/smokeping/cache/"
&&&&&&&&&&&&&&&&&&&&Alias&/cropper&"/usr/local/smokeping/htdocs/cropper/"
&&&&&&&&&&&&&&&&&&&&Alias&/smokeping&"/usr/local/smokeping/htdocs/smokeping.fcgi"
&&&&&&&&&&&&&&&&&&&&&Directory&"/usr/local/smokeping"&
&&&&&&&&&&&&&&&&&&&&AllowOverride&None
&&&&&&&&&&&&&&&&&&&&Options&All
&&&&&&&&&&&&&&&&&&&&AddHandler&cgi-script&.fcgi&.cgi
&&&&&&&&&&&&&&&&&&&&AllowOverride&AuthConfig
&&&&&&&&&&&&&&&&&&&&Order&allow,deny
&&&&&&&&&&&&&&&&&&&&Allow&from&all
&&&&&&&&&&&&&&&&&&&&AuthName&"Smokeping"
&&&&&&&&&&&&&&&&&&&&AuthType&Basic
&&&&&&&&&&&&&&&&&&&&AuthUserFile&/usr/local/smokeping/htdocs/htpasswd
&&&&&&&&&&&&&&&&&&&&Require&valid-user
&&&&&&&&&&&&&&&&&&&&DirectoryIndex&smokeping.fcgi
&&&&&&&&&&&&&&&&&&&&&/Directory&&6.设置登录帐号与密码&& & & & & & &[root@localcentos&etc]#&vi&/etc/httpd/conf/httpd.conf&
[root@localcentos&etc]#&cd&/usr/local/smokeping/htdocs/
[root@localcentos&htdocs]#&htpasswd&-c&/usr/local/smokeping/htdocs/htpasswd&admin
&&&New&password:&
&&&Re-type&new&password:&
&&&Adding&password&for&user&admin&7.设置smokeping开机启动&& & & & & & &&[root@localcentos&htdocs]#&echo&"/usr/local/smokeping/bin/smokeping&--&logfile=/var/log/smokeping.log&2&&1&&"&&&&/etc/rc.local&8.启动http和smokeping服务& & & & &&[root@localcentos&htdocs]#&service&httpd&restart
&&停止&httpd:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[失败]
&&正在启动&httpd:httpd:&apr_sockaddr_info_get()&failed&for&localcentos.localdomain
&&httpd:&Could&not&reliably&determine&the&server's&fully&qualified&domain&name,&using&127.0.0.1&for&ServerName
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[确定]& 修改httpd.conf文件& 276 #ServerName&& -------& 去掉#注释 我更改为我自己的 &ServerName 192.168.1.115[root@localcentos&htdocs]#&service&httpd&restart
[root@localcentos&htdocs]#&chkconfig&--level&25&httpd&on
[root@localcentos&htdocs]#&/usr/local/smokeping/bin/smokeping&--logfile=/var/log/smokeping.log&2&&1&&& &&& &&& &&& &&&OK,打开页面看看&输入用户名和密码&看看h.将本机纳入监控
[root@localcentos&~]#&vi&/usr/local/smokeping/etc/config
&&&&&&&&&&&在此文件***&Targets&***&最末尾加入
&&&&&&&&&&&++&Localhost
&&&&&&&&&&&&menu&=&Localhos&&&&&&&&&&&&&&&&
&&&&&&&&&&&&title&=&Localhost
&&&&&&&&&&&&alerts&=&someloss
&&&&&&&&&&&&#slaves&=&boomer&slave2
&&&&&&&&&&&&host&=&192.168.1.115
&&&&&&&&&&&&加入上面targets后,需要重启smokeping进程才能生效,否则会报错的
[root@localcentos&~]#&ps&-ef&|&grep&smokeping
&root&&&&&&1585&&&&&1&&0&04:13&?&&&&&&&&00:00:00&/usr/local/smokeping/bin/smokeping&&&&&&&&&&&[FPing]
&root&&&&&&&&0&04:26&pts/0&&&&00:00:00&grep&smokeping
[root@localcentos&~]#&kill&-HUP&1585&&** 每次加入监控点的时候都需要重启smokeping进程,切记。&&&&四.后记&下面是实际配置好的例子,smokeping配置文件config和httpd.conf在附件中,可以下载查看。& &&& &&& &&& &&& &&本文出自 “” 博客,请务必保留此出处
了这篇文章
附件下载:    
类别:┆阅读(0)┆评论(0)
请输入验证码:

我要回帖

更多关于 rpmforge源 的文章

 

随机推荐