- 浏览: 2489008 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Linux上简单配置安装cacti(四)cacti准备rrdtool
...汗,差这么多动动,参考如下BLOG把这些东东都安装完整,另外我也决定将rrdtool降低到和这个BLOG相同的版本
http://blog.csdn.net/wang01ning/archive/2009/11/22/4852385.aspx
命令:
export BUILD_DIR=/data/tools/postfix_install
export INSTALL_DIR=/usr/local/rrdtool
export CFLAGS="-O3 -fPIC"
export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
export PKG_CONFIG_PATH=/usr/local/rrdtool/lib/pkgconfig
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
tar xzvf pkg-config-0.23.tar.gz
cd pkg-config-0.23
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/zlib-1.2.3.tar.gz
tar xzvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=$INSTALL_DIR --shared
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/libpng-1.2.18.tar.gz
tar xzvf libpng-1.2.18.tar.gz
cd libpng-1.2.18
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/freetype-2.3.5.tar.gz
tar xzvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/libxml2-2.6.32.tar.gz
tar xzvf libxml2-2.6.32.tar.gz
cd libxml2-2.6.32
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/fontconfig-2.4.2.tar.gz
tar xzvf fontconfig-2.4.2.tar.gz
cd fontconfig-2.4.2
./configure --prefix=$INSTALL_DIR --with-freetype-config=$INSTALL_DIR/bin/freetype-config --with-expat-lib=/usr/lib64
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/pixman-0.10.0.tar.gz
tar xzvf pixman-0.10.0.tar.gz
cd pixman-0.10.0
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/cairo-1.6.4.tar.gz
tar xzvf cairo-1.6.4.tar.gz
cd cairo-1.6.4
./configure --prefix=$INSTALL_DIR \
--enable-xlib=no \
--enable-xlib-render=no \
--enable-win32=no
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/glib-2.15.4.tar.gz
tar xzvf glib-2.15.4.tar.gz
cd glib-2.15.4
./configure --prefix=$INSTALL_DIR
报错:
configure: error: *** pkg-config too old; version 0.16 or better required
检查版本:
命令:echo $PKG_CONFIG_PATH
返回信息:/usr/local/rrdtool/lib/pkgconfig
命令:pkg-config --version
返回信息:0.15.0
果然不符合要求,看来第一步安装pkg-config没有成功哟。其实不是没有安装成功,而是没有配置对。检查一下pkg-config是调用的哪里的命令:
which pkg-config
返回信息:
/usr/bin/pkg-config
将我们安装目录的pkg-config拷贝过去
cp /usr/local/rrdtool/bin/pkg-config /usr/bin/
再次查看版本,ok,已经正确了:),重新操作
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/pango-1.21.1.tar.bz2
tar jxvf pango-1.21.1.tar.bz2
cd pango-1.21.1
./configure --prefix=$INSTALL_DIR --without-x
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz
tar xzvf rrdtool-1.3.8.tar.gz
cd rrdtool-1.3.8
./configure --prefix=$INSTALL_DIR
出错:
configure: error: Your intltool is too old. You need intltool 0.35.0 or later.
解决办法如下:
wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz
tar zxvf intltool-0.40.6.tar.gz
cd intltool-0.40.6
./configure
make
make install
问题解决,安装完成新版,重新编译继续安装,
./configure --prefix=$INSTALL_DIR
make
出错:
tclrrd.c:20:17: tcl.h: 没有那个文件或目录
解决办法:
./configure --prefix=$INSTALL_DIR --disable-tcl
ok,问题解决,然后再继续安装
make
make install
检查安装的rrdtool的版本
/usr/local/rrdtool/bin/rrdtool -v
返回信息:
RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Dec 21 2009 21:55:27
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
rrdtool安装成功:)
...汗,差这么多动动,参考如下BLOG把这些东东都安装完整,另外我也决定将rrdtool降低到和这个BLOG相同的版本
http://blog.csdn.net/wang01ning/archive/2009/11/22/4852385.aspx
命令:
export BUILD_DIR=/data/tools/postfix_install
export INSTALL_DIR=/usr/local/rrdtool
export CFLAGS="-O3 -fPIC"
export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
export PKG_CONFIG_PATH=/usr/local/rrdtool/lib/pkgconfig
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
tar xzvf pkg-config-0.23.tar.gz
cd pkg-config-0.23
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/zlib-1.2.3.tar.gz
tar xzvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=$INSTALL_DIR --shared
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/libpng-1.2.18.tar.gz
tar xzvf libpng-1.2.18.tar.gz
cd libpng-1.2.18
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/freetype-2.3.5.tar.gz
tar xzvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/libxml2-2.6.32.tar.gz
tar xzvf libxml2-2.6.32.tar.gz
cd libxml2-2.6.32
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/fontconfig-2.4.2.tar.gz
tar xzvf fontconfig-2.4.2.tar.gz
cd fontconfig-2.4.2
./configure --prefix=$INSTALL_DIR --with-freetype-config=$INSTALL_DIR/bin/freetype-config --with-expat-lib=/usr/lib64
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/pixman-0.10.0.tar.gz
tar xzvf pixman-0.10.0.tar.gz
cd pixman-0.10.0
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/cairo-1.6.4.tar.gz
tar xzvf cairo-1.6.4.tar.gz
cd cairo-1.6.4
./configure --prefix=$INSTALL_DIR \
--enable-xlib=no \
--enable-xlib-render=no \
--enable-win32=no
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/glib-2.15.4.tar.gz
tar xzvf glib-2.15.4.tar.gz
cd glib-2.15.4
./configure --prefix=$INSTALL_DIR
报错:
configure: error: *** pkg-config too old; version 0.16 or better required
检查版本:
命令:echo $PKG_CONFIG_PATH
返回信息:/usr/local/rrdtool/lib/pkgconfig
命令:pkg-config --version
返回信息:0.15.0
果然不符合要求,看来第一步安装pkg-config没有成功哟。其实不是没有安装成功,而是没有配置对。检查一下pkg-config是调用的哪里的命令:
which pkg-config
返回信息:
/usr/bin/pkg-config
将我们安装目录的pkg-config拷贝过去
cp /usr/local/rrdtool/bin/pkg-config /usr/bin/
再次查看版本,ok,已经正确了:),重新操作
./configure --prefix=$INSTALL_DIR
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/libs/pango-1.21.1.tar.bz2
tar jxvf pango-1.21.1.tar.bz2
cd pango-1.21.1
./configure --prefix=$INSTALL_DIR --without-x
make
make install
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz
tar xzvf rrdtool-1.3.8.tar.gz
cd rrdtool-1.3.8
./configure --prefix=$INSTALL_DIR
出错:
configure: error: Your intltool is too old. You need intltool 0.35.0 or later.
解决办法如下:
wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz
tar zxvf intltool-0.40.6.tar.gz
cd intltool-0.40.6
./configure
make
make install
问题解决,安装完成新版,重新编译继续安装,
./configure --prefix=$INSTALL_DIR
make
出错:
tclrrd.c:20:17: tcl.h: 没有那个文件或目录
解决办法:
./configure --prefix=$INSTALL_DIR --disable-tcl
ok,问题解决,然后再继续安装
make
make install
检查安装的rrdtool的版本
/usr/local/rrdtool/bin/rrdtool -v
返回信息:
RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Dec 21 2009 21:55:27
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
rrdtool安装成功:)
发表评论
-
Docker(4)Docker on Raspberry
2015-07-15 13:25 1057Docker(4)Docker on Raspberry I ... -
VirtualBox Network
2015-06-10 11:48 732VirtualBox Network Last one ye ... -
Debian System(1)Java and NodeJS Env
2015-03-29 06:27 986Debian System(1)Java and NodeJS ... -
VirtualBox Importing OVA
2014-05-14 03:35 1190VirtualBox Importing OVAJust im ... -
Data Import Process
2012-09-05 11:21 1225Data Import Process 1. prepare ... -
Artifactory on Linux(1)
2011-12-13 22:41 1342Artifactory on Linux(1) Downlo ... -
Hudson/Jenkins Installation on Redhat4
2011-12-13 22:40 1310Hudson/Jenkins Installation on ... -
Archiva In Linux(1)
2011-12-13 13:56 1540Archiva In Linux(1) 1. install ... -
kingate(1)Install on redhat4
2011-11-02 23:02 1304kingate(1)Install on redhat4 1 ... -
JBOSS Performance Tuning
2011-09-22 16:20 1803JBOSS Performance Tuning 2. JV ... -
Linux Deploy Rails3 with Ruby1.9.2(5)Fix the Error Messages
2011-09-03 11:12 719Linux Deploy Rails3 with Ruby1. ... -
Linux Deploy Rails3 with Ruby1.9.2(4)Configure the rails in Apache2
2011-09-03 11:11 1575Linux Deploy Rails3 with Ruby1. ... -
Yum Problem after Python Upgrade
2011-08-23 17:09 4071Yum Problem after Python Upgrad ... -
Linux Deploy Rails3 with Ruby1.9.2(3)
2011-08-23 14:27 2117Linux Deploy Rails3 with Ruby1. ... -
Linux Deploy Rails3 with Ruby1.9.2(2)
2011-08-21 17:00 1626Linux Deploy Rails3 with Ruby1. ... -
Deploy Rails with Ruby1.9.2 on Redhat4(1)
2011-08-21 10:37 2179Deploy Rails with Ruby1.9.2 on ... -
Yum on Linux System
2011-08-20 14:00 1197Yum on Linux System download t ... -
Understand the Linux Version
2011-08-20 10:35 1393Understand the Linux Version 1 ... -
Linux Commands(I) scp
2011-06-21 23:54 1237Linux Commands(I) scp 1. scp i ... -
Linux Server Deployment(II)apache and SSH-CVS
2011-06-08 22:04 1571Linux Server Deployment(II)apac ...
相关推荐
centos stream 9安装cacti1.2.23,使用php8.0+maiadb10.5+rrdtool1.7.2
apache+mysql+php+snmp+rrdtool+cacti监控部署
Cacti for Linux/Unix安装方法 在文件夹include下的config.php中可配置你的数据库信息。 $database_type = "mysql"; //数据库类型 $database_default = "cacti"; //数据库名称 $database_hostname = "localhost...
Cacti 是一套基于 PHP、MySQL、SNMP 及 RRDTool 开发的网络流量监测图形分析工具
基于windows2003+iis6.0的cacti系统的安装,系统环境:windows 2003+iis6.0 安装包: php-5.1.1-Win32.zip mysql-5.0.19-win32.zip ActivePerl-5.6.1.638-MSWin32-x86.msi rrdtool-1.2.15-cygwin-1.5.20....
cacti安装教程详解。 Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。它通过snmp来获取数据,使用RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和...
基于FreeBSD+rrdtool+cacti的流量监控系统 ----配置说明
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。 安装环境:Centos6.5 32位 CACTI 0.8.8b版本
Cacti通过Mysql存储了所有RRDTool创建图像需要用到的信息以及管理信息,如:主机名、主机ip、snmp团体名、端口号、模板信息等。注意:SNMP抓到数据不是存储在mysql中,而是存在rrdtool生成的rrd文件中(在Cacti根...
Linux下用的最多的是MRTG的性能监视,MRTG配置比较简单,MRTG的确是非常好的东东,但我认为它毕竟已经是一套很旧的软件了,其作者在多年前就已经开发了RRDTool代替该软件,现在已经发展得很成熟。既然有更好的选择,...
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。它是用php语言实现的一个软件,它的主要功能是用snmp服务获取数据,然后用rrdtool储存和更新数据,当用户需要查看数据的时候用rrdtool生成...
Chapter 2 covers the installation of Cacti on a Linux machine using both APT and a manual installation. Chapter 3 covers creating devices, adding graph templates, and monitoring network- attached ...
Cacti 的发展就是基于让 RRDTool 使用者更方便使用该软件,除了基本的 Snmp 流量跟系统资讯监控外,Cacti 也可外挂 Scripts 及加上 Templates 来作出各式各样的监控图 Cacti中文站点&社区 ...
Cacti是通过 snmpget来获取数据,使用 RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结构、host以及任何一张图,还可以与LDAP...
由于RRDTOOL功能过于强大,所以使用起来命令过于复杂,而CACTI就在这时出现了,它是图形界面,使用简单,使不用直接和RRDTOOL接触。但是它是以SNMP和RRDTOOL为基础的,所以最好深入学习一下NET-SNMP和RRDTOOL的使用...
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。它通过snmpget来获取数据,使用RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,...
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具
因此,snmp和rrdtool是cacti的关键。Snmp关系着数据的收集,rrdtool关系着数据存储和图表的生成。 2. Mysql配合PHP程序存储一些变量数据并对变量数据进行调用,如:主机名、主机ip、snmp团体名、端口号、模板信息等...
cacti的默认5分钟的采集保存流量数据为2天,如果不想调整rra文件的大小,可以每天晚上0点执行此脚本,将5分钟的流量值,保存在文本文件中,便于以后查看。在crontab 定时运行rrd_tool 提取流量,第一个脚本为提取...
Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。它通过snmp来获取数据,使用RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数。它提供了非常强大的数据和用户管理功能,可以...