ubuntu和centos安装RRDTool——cacti前置技能

Installing Pre-Requisites

Note that RRDTool 1.0.x versions included all dependancies, but 1.2.x versions require you to install these dependancies before installing RRDTool.

For RedHat 9, you‘ll need to install the following RPMs from the RH9 CD:

  • libart_lgpl-2.3.11-2.i386.rpm
  • libart_lgpl-devel-2.3.11-2.i386.rpm
  • zlib-1.1.4-8.i386.rpm
  • zlib-devel-1.1.4-8.i386.rpm
  • libpng-1.2.2-16.i386.rpm
  • libpng-devel-1.2.2-16.i386.rpm
  • freetype-2.1.3-6.i386.rpm
  • freetype-devel-2.1.3-6.i386.rpm

You‘ll also need to install cgilib-devel, and a RH9 RPM for cgi-lib-devel can be found on the cgilib RPM packages page.

Each of the above RPMs can be installed using the following syntax:

rpm -Uvh rpmname.rpm

Installing RRDTool on Ubuntu 
On Ubuntu distributions of linux, RRDTool can be installed by running the following:

apt-get install librrds-perl rrdtool

Msnually Installing RRDTool From Source

To manually install RRDTool from the source code, SCP the tarball into the /usr/src directory on your linux box. From a command prompt, change into the /usr/src directory, and un-tar the tarball:

cd /usr/src
tar -xzvf rrdtool-1.2.12.tar.gz

Change into the newly created directory:

cd rrdtool-1.2.12

Compile and install RRDTool:

./configure --disable-tcl
make
make install

TCL is disabled, as compilation of some of the TCL components for RRDTool 1.2.12 will otherwise fail on RedHat 9.
Run ./configure --help for more information on configuration options.

The default installation location is /usr/local/rrdtool-VERSION, so make some symbolic links to the executables:

ln -sf /usr/local/rrdtool-1.2.12/bin/rrdtool /usr/bin/rrdtool
ln -sf /usr/local/rrdtool-1.2.12/bin/rrdupdate /usr/bin/rrdupdate
ln -sf /usr/local/rrdtool-1.2.12/bin/rrdcgi /usr/bin/rrdcgi

The RRDTool Perl library simplifies things when using RRDTool from a Perl script, so to compile and install the Perl library for RRDTool:

make site-perl-install

Creating Data Directories for RRDTool 
Create a directory for RRDTool databases, and a directory for the web images which it‘ll generate:

mkdir /var/lib/rrd
mkdir /var/www/html/rrdtool
时间: 2024-08-03 00:17:42

ubuntu和centos安装RRDTool——cacti前置技能的相关文章

ubuntu与centos安装软件的不同点总结

ubuntu与redhat系列的linux操作系统安装软件区别是很大的.下表列出了两者之间的对比.

CentOS 6.7安装配置Cacti监控系统

一.安装配置LAMP环境 yum -y install httpd php php-mysql php-snmp php-xml php-gd mysql mysql-server 启动http和mysql service httpd start service mysqld start 执行mysql安全设置,根据提示设置root密码 mysql_secure_installation 二.安装RRDTool和net-snmp 1.RRDTool主要用于绘图 yum -y install rr

CentOs安装cacti

虚拟机地址 192.168.24.69, 附件中的三个文件可以用SSH FILE工具上传到root文件夹下,方便后续操作 一.安装所需要的软件(1)在主监控机上安装apache+php+gd的web环境,推荐编译安装,在此直接用yum安装. #yum install -y php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-libs net-snmp-utils php-pdo perl-DBD-MySQL(2)在主监控机上安装

Ubuntu Server 安装部署 Cacti 服务器监控

Ubuntu Server 安装部署 Cacti 服务器监控 form :http://www.cnblogs.com/xuri/p/3379337.html

linux的ubuntu和centos下快速安装LAMP环境

在linux下安装lamp环境,下面为大家分别介绍在ubuntu和centos下面快速安装LAMP环境的方法. 首先,让我们了解一下什么是LAMP环境(一下摘自百度百科): Linux+Apache+Mysql/MariaDB+Perl/PHP/Python一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台.随着开源潮流的蓬勃发展,开放源代码的LAMP已经与J2EE和.Net商业软件形成三足

在Linux(CentOS、Debian、Ubuntu等)上安装Netdata

Netdata是一个免费的.开放源码的实时监控工具,它是一个主动维护的.易于安装的.可以使用web浏览器访问的漂亮的仪表板UI.使用Netdata,您可以轻松地实时监视您的Vultr实例的每个参数,几乎没有开销.Netdata非常轻量级,在大多数情况下需要最多1%的CPU和大约20MB的RAM. 安装Netdata Netdata附带了一个可以轻松运行在不同发行版上的脚本.安装脚本目前支持以下发行版: Arch Gentoo Debian Ubuntu Sabayon CentOS Redhat

Docker在ubuntu和centos的安装

Docker介绍 Docker 使用Google公司推出的Go语言进行开发基于 Linux 内核的cgroup,namespace,以及 AUFS 类的 Union FS 等技术,对进程进行封装隔离,属于操作系统层面的虚拟化技术. Docker组件说明 LXC Linux容器技术,共享内核,容器共享宿主机资源,使用namespace和cgroups对资源限制与隔离. Cgroups(control groups) Linux内核提供的一种限制单进程或者多进程资源的机制:比如CPU.内存等资源的使

centos 安装ganglia监控工具

一.ganglia基本介绍 ganglia是分布式的监控系统,有两个Daemon,分别是:客户端GangliaMonitoring Daemon (gmond)和服务端GangliaMeta Daemon (gmetad),还有GangliaPHP Web Frontend(基于web的动态访问方式)组成是一个Linux下图形化监控系统运行性能的软件,界面美观.丰富,功能强大而ganglia又依赖于一个web服务器用来显示集群状态,用rrdtool来存储数据和生成曲线图,需要xml解析因此需要e

CentOS上配置Cacti监控MySQL

防伪码:即使没有辉煌的未来.如果能有无悔的往昔.   第九章 CentOS上配置Cacti监控MySQL 前言:在企业网络运维过程中,管理员必须随时关注服务器和网络的运行状况.以便及时发现问题,尽可能减少故障的发生.当网络中的设备.服务器等数量较多时,为了更加方便.快捷的获得各种监控信息,通常会借助于一些集中检测软件.本章将以著名的Cacti套件为例,介绍服务器集中监控体系的构建和使用. 一.Cacti官方简介: 1.Cacti是通过 snmpget来获取数据,使用 RRDtool绘画图形,而且