ubuntu 下配置munin

环境:

  "Ubuntu 13.10"   

 

安装:  

apt-get install munin munin-node
apt-get install apache2

 

配置:

1. vim /etc/munin/munin.conf    

dbdir   /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin
tmpldir /etc/munin/templates
staticdir /etc/munin/static
cgitmpdir /var/lib/munin/cgi-tmp
includedir /etc/munin/munin-conf.d
graph_period second
graph_strategy cron
cgiurl_graph /munin-cgi/munin-cgi-graph
max_size_x 4000
max_size_y 4000
html_strategy cron
max_processes 16
[munin-test]
    address 127.0.0.1
    use_node_name yes

2. vim /etc/munin/munin-node.conf   

log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid

background 1
setsid 1

user root
group root

ignore_file [\#~]$
ignore_file DEADJOE$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$


allow ^127\.0\.0\.1$           
allow ^192\.168\.8\.158$

host *
port 4949

 

3. 配置apache

rm  /etc/apache2/sites-enabled/* -rf
cp /etc/munin/apache.conf  /etc/apache2/sites-enabled/

4. 启动服务

/etc/init.d/munin start
/etc/init.d/munin-node start
/etc/init.d/apache2 restart

5. 修改定时执行

vim /etc/cron.d/munin                      #修改绘图周期
*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi】
/etc/init.d/cron restart                   #重启定时服务

vim /etc/munin/templates/partial/head.tmpl  #修改网页定时刷新

【<meta http-equiv="refresh" content="200" />

 

访问:     

http://192.168.8.158/munin/

 

 

参考:http://imcn.me/html/y2014/17433.html

  

转载于:https://www.cnblogs.com/javawer/p/3730255.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值