`
sillycat
  • 浏览: 2489426 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

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/





分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics