CentOS Linux安装munin

Munin是一个网络资源监控工具,通过自带插件可以监控很多系统服务。官网:http://munin-monitoring.org/。Munin需要在web server上运行。这里系统为CentOS6.2,监控机IP为192.168.1.100,被监控机IP为192.168.1.200。经过比较,不使用复杂的源码编译安装,参考官方wiki上使用yum方式安装。

一、监控机配置(Munin master)
0、先安装web server
这里使用apache。

yum install httpd

apache基本配置略过。Munin也可以运行在一个Java的web server上(Resin from www.caucho.com)。

1、安装EPEL源

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm


vim /etc/yum.repos.d/dag.repo
继续阅读CentOS Linux安装munin

春分时节饮食指导

华中有“春分麦起身,一刻值千金”的农谚。

其实除了农作物,我们的身体也进入新陈代谢加快的时段,如何通过合理安排膳食,才能达到养生的目的呢?

从某种角度说,吃对了才是养生,需要注意以下几个原则。

■饮食指导原则一:祛湿健脾

■饮食指导原则二:多吃吃时令菜

两千多年前的孔子就告诫我们“不时,不食”,就是说,不是这个季节的菜果就不吃。

时令菜也是“运气菜”。食物一要讲究“气”,一要讲究“味”。

因为食物和药物都是由气味组成的,而药物、食物的气味只有在当令时,即生长成熟符合节气的食物,才能得天地之精气。
继续阅读春分时节饮食指导

CentOS Linux安装monit

Monit是一个Linux/UNIX系统上开源的进程、文件、目录和文件系统监控和管理工具。官网:http://mmonit.com/。这里系统为CentOS6.2,监控机IP为192.168.1.100,被监控机IP为192.168.1.200。

一、被监控机安装monit
1、安装monit
monit有源码和编译好的二进制版,目前最新为monit-5.3.2,这里使用pre-compiled binaries版,省时省力。

选择相应的系统下载:

cd /tmp
wget http://mmonit.com/monit/dist/binary/5.3.2/monit-5.3.2-linux-x86.tar.gz
tar -axvf monit-5.3.2-linux-x86.tar.gz

2、将monit放到合适的位置:

mv monit-5.3.2 /usr/local/monit
继续阅读CentOS Linux安装monit

CentOS Linux安装cacti

Cacti是一套基于PHP、MySQL、SNMP及RRDTool开发的网络流量监测图形分析工具。使用snmp协议监控。官网:http://www.cacti.net/。这里系统为centOS6.2,监控机IP为192.168.1.100,被监控机IP为192.168.1.200。

一、安装PHP Web Server环境及cacti所需软件包
LAMP、LNMP、LANMP都可以。这里用apache+php+mysql。

yum install httpd mysql mysql-server php php-mysql php-snmp php-pdo rrdtool net-snmp net-snmp-libs net-snmp-utils

配置LAMP过程略过。

二、建立数据库

#mysql -u root -p
mysql>create database cacti default character set utf8;
mysql>create user 'cactiuser'@'localhost' identified by '123456';
mysql>grant all privileges on cacti.* to 'cactiuser'@'localhost';
mysql>flush privileges;
mysql>\q

建立了一个数据库cacti,mysql用户cactiuser,密码为123456。
继续阅读CentOS Linux安装cacti

CentOS Linux安装ntop

ntop是一个网络流量监控工具,自带web interface,主要用来监控内网流量可以安装在网关上。官网:http://www.ntop.org/。这里系统为CentOS6.2。

0、安装RPMForge源
部分依赖的软件包需要到RPMForge源下载,所以先要安装RPMForge源。
安装过程可参考:http://www.live-in.org/archives/998.html

1、安装必备软件

yum install libtool automake autoconf m4 make gcc gcc-c++ gdbm gdbm-devel zlib zlib-devel openssl openssl-devel python-devel GeoIP GeoIP-devel

2、安装libpcap

yum install libpcap libpcap-devel

3、安装rrdtool

yum install rrdtool rrdtool-devel
继续阅读CentOS Linux安装ntop