Monitoring a Server with Munin on Ubuntu

Monitoring a Server with Munin on Ubuntu
Munin is a simple to configure tool that make nice graph about your server
status.It can actually deal with almost any aspect of your server(load average,
network cards status,CPU usage,memory usage,postfix,exim4,mysql ...)

1.installing and configuring munin
munin is composed of a master and client nodes.
every client(node) runs munin-node and then the master regularly query the different
node to gather and process datas.

$sudo apt-get install munin munin-node

2.configuring the master and node
edit the master file: /etc/munin/munin.conf
This is in this file that you define every clients the master is going to gather information
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin
[sillycat.com]
address 192.168.50.92
use_node_name yes

我本机的IP是192.168.50.92

edit /etc/munin/munin-node.conf
#host *
host 192.168.50.92

allow ^192\.168\.50\.92$

修改5分钟执行监控一次
crontab -e
修改内容如下:
# m h dom mon dow command
#BEGIN_MUNIN_MAIN
MAILTO=root
*/5 * * * * /usr/bin/munin-cron --force-root
#END_MUNIN_MAIN

重启守护进程
/etc/init.d/cron restart

重启
$sudo /etc/init.d/munin-node restart


3.由于apache2上已经配置了很多东东,所以决定还是用lighttpd
安装lighttpd
sudo apt-get install lighttpd
安装后启动失败,是因为默认的80端口已经被apache2给用了
vi /etc/lighttpd/lighttpd.conf
找到此行,修改成为如下内容,端口改为81
server.port = 81
重启
/etc/init.d/lighttpd restart

4.查看信息
访问如下地址:
http://server.com:port/munin
我本机的地址是:
http://www.sillycat.com:81/munin/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值